Skip to content
gist.link ↗

updateEvent

Mutation Calendar API — POST https://calendar.api.gist.link/graphql

The updateEvent mutation on the Calendar API.

calendar:mutation:updateEvent

The calling IAM key must hold this permission (or a wildcard that covers it: calendar:mutation:* or calendar:*) and the access token must have been minted with audience=calendar. See Permissions.

type Mutation {
updateEvent(id: ID!, input: EventInput!, scope: EditScope, occurrenceStart: DateTime): Event!
}
Argument Type Required Description
id ID! Yes —
input EventInput! Yes —
scope EditScope No —
occurrenceStart DateTime No —

Event! — see the Calendar types reference.

Terminal window
curl https://calendar.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateEvent($id: ID!, $input: EventInput!, $scope: EditScope, $occurrenceStart: DateTime) { updateEvent(id: $id, input: $input, scope: $scope, occurrenceStart: $occurrenceStart) { id title status } }",
"variables": {
"id": "01a01234-abcd-7000-9000-0123456789ab",
"input": {
"calendarId": "01a01234-abcd-7000-9000-0123456789ab",
"title": "Example",
"startAt": {},
"endAt": {}
},
"scope": "THIS",
"occurrenceStart": {}
}
}
JSON