PATCH
/
api
/
v2
/
storefront
/
wishlists
/
{token}
/
set_item_quantity
/
{item_id}
curl --request PATCH \
  --url https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token}/set_item_quantity/{item_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "quantity": 7
}'
{
"data": {
"id": "1",
"type": "wished_item",
"attributes": {
"quantity": 3,
"price": "55.99",
"total": "167.97",
"display_price": "$55.99",
"display_total": "$167.97"
},
"relationships": {
"variant": {
"data": {
"id": "149",
"type": "variant"
}
}
}
}
}

Authorizations

Authorization
string
header
required

User token to authorize Cart and Checkout requests.

It is required to associate Cart with the User.

Path Parameters

token
string
required

The token is a unique string used to identify the target resource.

item_id
string
required

The wished item id

Body

application/vnd.api+json

The body is of type object.

Response

200
application/vnd.api+json

200 Success - Returns an array of wished_item objects.

The response is of type object.