Skip to main content

Arguments

accountNumber : String! required

The account number to update consents for.

consents : [ConsentInput]! required

Consents to update for account.

Returns

UpdateAccountConsents

Update the consents for an account using the consent management system.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can access customer queries
OR Can edit customer marketing preference

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

mutation UpdateAccountConsents( $accountNumber: String!, $consents: [ConsentInput]! ) { updateAccountConsents( accountNumber: $accountNumber, consents: $consents ) { consents { ...ConsentTypeFragment } } }

Variables

{ "accountNumber": "A-198AD0DB", "consents": ConsentInput }

Response

{ "data": { "updateAccountConsents": { "consents": [ConsentType] } } }