Edit in GitHubLog an issue
Adobe Commerce only. Learn more

updateGiftRegistryRegistrants mutation

The updateGiftRegistryRegistrants mutation updates properties of one or more registrants of the specified gify registry.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
updateGiftRegistryRegistrants(
giftRegistryUid: ID!,
registrants: [UpdateGiftRegistryRegistrantInput!]!
) {
UpdateGiftRegistryRegistrantsOutput
}
}

Reference

The updateGiftRegistryRegistrants reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example updates a registrant's email address.

Request:

Copied to your clipboard
mutation{
updateGiftRegistryRegistrants(
giftRegistryUid: "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
registrants: {
giftRegistryRegistrantUid: "OA=="
email: "new-email@example.com"
}
)
{
gift_registry {
uid
registrants {
uid
firstname
lastname
email
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"updateGiftRegistryRegistrants": {
"gift_registry": {
"uid": "W9YcRai9JmzGglqP3p0USodTTM3BmjjY",
"registrants": [
{
"uid": "Mg==",
"firstname": "Stacey",
"lastname": "Gaines",
"email": "staceyg@example.com"
},
{
"uid": "OA==",
"firstname": "Monica",
"lastname": "Resendez",
"email": "new-email@example.com"
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.