Upsert B2C Subscription
Create or update a B2C subscription.
mutation (
$companyId: ID!
$type: B2cSubscriptionType!
$emailId: ID
$telephoneNumberId: ID
$subscriptionTopicIds: [ID!]!
$expirationDate: Date
$notificationStartTime: Time
$notificationEndTime: Time
) {
upsertB2cSubscription (
companyId: $companyId
type: $type
emailId: $emailId
telephoneNumberId: $telephoneNumberId
subscriptionTopicIds: $subscriptionTopicIds
expirationDate: $expirationDate
notificationStartTime: $notificationStartTime
notificationEndTime: $notificationEndTime
) {
... on B2cEmailSubscription {
id
insertedAt
updatedAt
type
subscriptionTopics
expirationDate
notificationStartTime
notificationEndTime
email
company {
id
}
user {
id
}
}
... on B2cSmsSubscription {
id
insertedAt
updatedAt
type
subscriptionTopics
expirationDate
notificationStartTime
notificationEndTime
telephoneNumber
company {
id
}
user {
id
}
}
... on B2cVoiceSubscription {
id
insertedAt
updatedAt
type
subscriptionTopics
expirationDate
notificationStartTime
notificationEndTime
telephoneNumber
company {
id
}
user {
id
}
}
Last updated
Was this helpful?