requestDoubleOptIn
Request a double opt in for a consent.
This mutation will create a consent with a value of PENDING and publish a double opt-in requested transactional messaging trigger.
Arguments
Returns
RequestDoubleOptInRequest a double opt in for a consent.
This mutation will create a consent with a value of PENDING and publish a double opt-in requested transactional messaging trigger.
Possible Errors
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1199: Too many requests.
- KT-CT-7899: An internal error occurred.
- KT-CT-9016: Consent management not enabled.
- KT-CT-9017: Consent type not found.
- KT-CT-9018: Account not found.
- KT-CT-9019: Invalid input.
- KT-CT-9023: Consent already accepted.
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 RequestDoubleOptIn($input: DoubleOptInInput) {
requestDoubleOptIn(input: $input) {
consent {
...ConsentTypeFragment
}
}
}
Variables
{
"input": DoubleOptInInput
}
Response
{
"data": {
"requestDoubleOptIn": {
"consent": ConsentType
}
}
}