Mutation
mutation CreateEventAnnouncement($input: CreateEventAnnouncementInput!) {
createEventAnnouncement(input: $input) {
announcement {
bodyHtml
bodyText
createdAt
externalLink
id
post {
__typename
... on Event {
__typename
}
}
}
clientMutationId
errors
}
}Variables
{
"input": {
"body": "string",
"eventId": "id",
"rsvpStatuses": [
"MAYBE"
]
}
}Response
{
"data": {
"createEventAnnouncement": {
"announcement": {
"bodyHtml": "string",
"bodyText": "string",
"createdAt": "value",
"externalLink": "string",
"id": "id",
"post": {
"__typename": "Event"
}
},
"clientMutationId": "string",
"errors": [
"string"
]
}
}
}Mutations
createEventAnnouncement
Send an announcement — a broadcast notification — to the members of an event’s selected RSVP groups.
Required scopes: write:posts, host:write:network_announcements (any one)
MUTATION
createEventAnnouncement(input: CreateEventAnnouncementInput!): CreateEventAnnouncementPayloadArguments
input
required
Parameters for CreateEventAnnouncement
announcement
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
Mutation
mutation CreateEventAnnouncement($input: CreateEventAnnouncementInput!) {
createEventAnnouncement(input: $input) {
announcement {
bodyHtml
bodyText
createdAt
externalLink
id
post {
__typename
... on Event {
__typename
}
}
}
clientMutationId
errors
}
}Variables
{
"input": {
"body": "string",
"eventId": "id",
"rsvpStatuses": [
"MAYBE"
]
}
}Response
{
"data": {
"createEventAnnouncement": {
"announcement": {
"bodyHtml": "string",
"bodyText": "string",
"createdAt": "value",
"externalLink": "string",
"id": "id",
"post": {
"__typename": "Event"
}
},
"clientMutationId": "string",
"errors": [
"string"
]
}
}
}