Authorizations
Path Parameters
Query Parameters
Body
application/vnd.api+json
curl --request PATCH \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"wishlist": {
"name": "Birthday Ideas"
}
}'{
"data": {
"id": "28",
"type": "wishlist",
"attributes": {
"token": "1inBHcJnxBrVEMAZb9esRqZP",
"name": "My Wishlist",
"is_private": false,
"is_default": true,
"variant_included": false
},
"relationships": {
"wished_items": {
"data": [
{
"id": "14",
"type": "wished_item"
}
]
}
}
}
}Updates the specific Wishlist by setting the values passed in the request body. Any parameters not provided will be left unchanged.
curl --request PATCH \
--url https://demo.spreecommerce.org/api/v2/storefront/wishlists/{token} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"wishlist": {
"name": "Birthday Ideas"
}
}'{
"data": {
"id": "28",
"type": "wishlist",
"attributes": {
"token": "1inBHcJnxBrVEMAZb9esRqZP",
"name": "My Wishlist",
"is_private": false,
"is_default": true,
"variant_included": false
},
"relationships": {
"wished_items": {
"data": [
{
"id": "14",
"type": "wished_item"
}
]
}
}
}
}Show child attributes
Was this page helpful?