Edit in GitHubLog an issue
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.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
updateWishlist(
wishlistUid: ID!
name: String
visibility: 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 clipboard
mutation {
updateWishlist(
wishlistUid: 4
name: "My favorite things"
visibility: PUBLIC
) {
name
uid
visibility
}
}

Response:

Copied to your clipboard
{
"data": {
"updateWishlist": {
"name": "My favorite things",
"uid": "4",
"visibility": "PUBLIC"
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.