Mutation
mutation CreateBroadcast($input: CreateBroadcastInput!) {
createBroadcast(input: $input) {
broadcast {
id
name
notificationTitle
content
contentFormat
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"content": "string",
"contentFormat": "TIPTAP",
"type": "SLACK"
}
}Response
{
"data": {
"createBroadcast": {
"broadcast": {
"id": "id",
"name": "string",
"notificationTitle": "string",
"content": "string",
"contentFormat": "TIPTAP",
"type": "SLACK"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createBroadcast
Creates a new broadcast in the workspace. The content is encoded as declared by
contentFormat and authored against the rendering rules of the given type.
Requires the broadcast:create permission.
MUTATION
createBroadcast(input: CreateBroadcastInput!): CreateBroadcastOutput!Arguments
input
required
Returns
broadcast
error
Mutation
mutation CreateBroadcast($input: CreateBroadcastInput!) {
createBroadcast(input: $input) {
broadcast {
id
name
notificationTitle
content
contentFormat
type
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"content": "string",
"contentFormat": "TIPTAP",
"type": "SLACK"
}
}Response
{
"data": {
"createBroadcast": {
"broadcast": {
"id": "id",
"name": "string",
"notificationTitle": "string",
"content": "string",
"contentFormat": "TIPTAP",
"type": "SLACK"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

