Skip to main content

AddWishlistItemInput

Input for adding an item to a wishlist

input AddWishlistItemInput {
id: Int
productId: String!
quantity: Int!
privateToken: UUID
shareToken: UUID
}

Fields

id ● Int

ID of the wishlist. Optional - if not provided, creates a new wishlist and adds the item to it:

productId ● String!

ID of the product to add

quantity ● Int!

Quantity of the product

privateToken ● UUID

Private token can be used to identify a wishlist for adding items for non-logged-in users.

shareToken ● UUID

Share token for accessing shared wishlists. When provided, adds item to the shared wishlist (requires EDIT permission).

Example

{
"quantity": 1
}