Skip to content

setMyEmailMarketingConsent

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.

Public because the marketing opt-in on a registration form is now written separately from the order: checkout takes no emailMarketingConsent, so the embed's booking sheet grants it here once the booking lands.

Arguments

Returns

SetMyEmailMarketingConsentResult!

See SetMyEmailMarketingConsentResult for the full shape.

Try it

Authentication
Example
Query
mutation SetMyEmailMarketingConsent($business: EntityRef!, $action: EmailMarketingConsentAction!) {
  setMyEmailMarketingConsent(business: $business, action: $action) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql