updateAccountConsents
Update the consents for an account using the consent management system.
Arguments
The account number to update consents for.
Consents to update for account.
Returns
UpdateAccountConsentsUpdate the consents for an account using the consent management system.
Possible Errors
Allowed Viewers
Required Permissions
Can access customer queriesCan edit customer marketing preference
Query Complexity
1Examples
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.
mutation UpdateAccountConsents(
$accountNumber: String!,
$consents: [ConsentInput]!
) {
updateAccountConsents(
accountNumber: $accountNumber,
consents: $consents
) {
consents {
...ConsentTypeFragment
}
}
}
Variables
{
"accountNumber": "A-198AD0DB",
"consents": ConsentInput
}
Response
{
"data": {
"updateAccountConsents": {
"consents": [ConsentType]
}
}
}