updateAccountUserConsents
Update the consents of an account user (the authenticated user)
Arguments
Consents to update for account user.
User number of the account user to update consents for. Only needed if the viewer is an organization.
Returns
UpdateAccountUserConsentsUpdate the consents from an account user using consent management system
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1605: Invalid input.
- KT-CT-5421: Account user not found.
- KT-CT-5422: Invalid data.
- KT-CT-7899: An internal error occurred.
- KT-CT-9014: Duplicate consent.
- KT-CT-9016: Consent management not enabled.
- KT-CT-9017: Consent type not found.
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.
mutation UpdateAccountUserConsents(
$consents: [ConsentTypeInput],
$userNumber: String
) {
updateAccountUserConsents(
consents: $consents,
userNumber: $userNumber
) {
accountUserConsents {
...AccountUserConsentsFragment
}
}
}
Variables
{
"consents": ConsentTypeInput,
"userNumber": "again-physical-paper-structure-deal"
}
Response
{
"data": {
"updateAccountUserConsents": {
"accountUserConsents": AccountUserConsents
}
}
}