Mutation
mutation ImportBroadcastRecipientUnsubscribes($input: ImportBroadcastRecipientUnsubscribesInput!) {
importBroadcastRecipientUnsubscribes(input: $input) {
result {
isDryRun
rows {
rowNumber
status
recipient
slackTeamId
slackChannelId
message
}
createdCount
alreadyUnsubscribedCount
notFoundCount
ambiguousCount
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"rows": [
{
"rowNumber": 1,
"recipient": "string"
}
],
"isDryRun": true
}
}Response
{
"data": {
"importBroadcastRecipientUnsubscribes": {
"result": {
"isDryRun": true,
"rows": [
{
"rowNumber": 1,
"status": "CREATED",
"recipient": "string",
"slackTeamId": "id",
"slackChannelId": "id",
"message": "string"
}
],
"createdCount": 1,
"alreadyUnsubscribedCount": 1,
"notFoundCount": 1,
"ambiguousCount": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
importBroadcastRecipientUnsubscribes
Bulk-imports broadcast recipient unsubscribes by recipient identifier (Slack channel id/name today; email later). Idempotent. Requires broadcast:edit and the broadcasts feature flag.
MUTATION
importBroadcastRecipientUnsubscribes(input: ImportBroadcastRecipientUnsubscribesInput!): ImportBroadcastRecipientUnsubscribesOutput!Arguments
input
error
Mutation
mutation ImportBroadcastRecipientUnsubscribes($input: ImportBroadcastRecipientUnsubscribesInput!) {
importBroadcastRecipientUnsubscribes(input: $input) {
result {
isDryRun
rows {
rowNumber
status
recipient
slackTeamId
slackChannelId
message
}
createdCount
alreadyUnsubscribedCount
notFoundCount
ambiguousCount
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"rows": [
{
"rowNumber": 1,
"recipient": "string"
}
],
"isDryRun": true
}
}Response
{
"data": {
"importBroadcastRecipientUnsubscribes": {
"result": {
"isDryRun": true,
"rows": [
{
"rowNumber": 1,
"status": "CREATED",
"recipient": "string",
"slackTeamId": "id",
"slackChannelId": "id",
"message": "string"
}
],
"createdCount": 1,
"alreadyUnsubscribedCount": 1,
"notFoundCount": 1,
"ambiguousCount": 1
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

