Mutation
mutation CreateEvent($input: CreateEventInput!) {
createEvent(input: $input) {
clientMutationId
errors
event {
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
bodyHtml
bodyText
cheerCount
cheersEnabled
}
}
}Variables
{
"input": {
"endsAt": "value",
"eventType": "string",
"spaceId": "id",
"startsAt": "value",
"title": "string"
}
}Response
{
"data": {
"createEvent": {
"clientMutationId": "string",
"errors": [
"string"
],
"event": {
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"cheersEnabled": true
}
}
}
}Mutations
createEvent
Create a new event in a space
Required scopes: write:posts, host:write:network_events (any one)
MUTATION
createEvent(input: CreateEventInput!): CreateEventPayloadArguments
input
required
Parameters for CreateEvent
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
event
Mutation
mutation CreateEvent($input: CreateEventInput!) {
createEvent(input: $input) {
clientMutationId
errors
event {
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
bodyHtml
bodyText
cheerCount
cheersEnabled
}
}
}Variables
{
"input": {
"endsAt": "value",
"eventType": "string",
"spaceId": "id",
"startsAt": "value",
"title": "string"
}
}Response
{
"data": {
"createEvent": {
"clientMutationId": "string",
"errors": [
"string"
],
"event": {
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string",
"bodyHtml": "string",
"bodyText": "string",
"cheerCount": 1,
"cheersEnabled": true
}
}
}
}