Edit in GitHubLog an issue

clearWishlist mutation

The clearWishlist mutation removes all items from a wishlist for the logged in customer.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
clearWishlist(wishlistId: int) {
user_errors {
code
message
}
wishlist {
id
items_count
name
sharing_code
updated_at
visibility
}
}
}

Example usage

The following example clears the wishlist with ID 15 for the customer.

Request:

Copied to your clipboard
mutation {
clearWishlist(wishlistId: 15) {
user_errors {
code
message
}
wishlist {
id
items_count
name
sharing_code
updated_at
visibility
}
}

Response:

Copied to your clipboard
{
"data": {
"clearWishlist": {
"user_errors": [],
"wishlist": {
"id": "15",
"items_count": 0,
"name": "Wish List",
"sharing_code": "l6jgZ3VJxNeJguCJpbFTMMagkr5TKaep",
"updated_at": "2025-05-27 07:26:09",
"visibility": "PRIVATE"
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.