saveMyConsent
Saves the signed-in user's consent choice on their account and records it in their consent history. Unknown purposes and providers are ignored, and a time more than five minutes in the future is replaced with the current time. Returns the stored choice.
Arguments
decidedAtDateTime!When the user made the choice, as an ISO 8601 date-time.
providers[ConsentChoiceInput!]!The user's answer for each third-party provider. At most 64.
purposes[ConsentChoiceInput!]!The user's answer for each purpose. At most 32.
sourceConsentSource!Where the user made the choice.
Returns
Consent!Example
mutation SaveMyConsent($decidedAt: DateTime!, $providers: [ConsentChoiceInput!]!, $purposes: [ConsentChoiceInput!]!, $source: ConsentSource!) {
saveMyConsent(
decidedAt: $decidedAt
providers: $providers
purposes: $purposes
source: $source
) {
decidedAt
version
}
}