Adobe Commerce only. Learn more
updateWishlist mutation
The updateWishlist
mutation updates the properties of a wish list. Adobe Commerce allows customers to change the name and visibility of wish lists.
Use the updateProductsInWishlist mutation to modify the contents of a wish list.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {updateWishlist(wishlistUid: ID!name: Stringvisibility: WishlistVisibilityEnum) {UpdateWishlistOutput}}
Reference
The updateWishlist
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example changes the name of an existing wish list.
Request:
Copied to your clipboardmutation {updateWishlist(wishlistUid: 4name: "My favorite things"visibility: PUBLIC) {nameuidvisibility}}
Response:
Copied to your clipboard{"data": {"updateWishlist": {"name": "My favorite things","uid": "4","visibility": "PUBLIC"}}}