setMyEmailMarketingConsentMutation
setMyEmailMarketingConsent(business: EntityRef!, action: EmailMarketingConsentAction!): SetMyEmailMarketingConsentResult!Set the signed-in viewer's own email-marketing consent for a business they participate in. grant records an affirmative opt-in and freezes the compliant disclosure the viewer was shown (only allowed while the business is collecting consent); withdraw unsubscribes. Recorded as an immutable ledger event with source = participant.
Arguments
businessEntityRef!actionEmailMarketingConsentAction!Returns
SetMyEmailMarketingConsentResult!
See SetMyEmailMarketingConsentResult for the full shape.
Try it
Example
Query
mutation SetMyEmailMarketingConsent($business: EntityRef!, $action: EmailMarketingConsentAction!) {
setMyEmailMarketingConsent(business: $business, action: $action) {
__typename
}
}
Variables
{}
POST
https://go.sessions.website/api/graphqlsetMyEmailMarketingConsent