createOrUpdateEvent

Creates OR updates an existing Event. Note: you may not reassign an event from one calendar to another. Meaning, if you try to call this mutation on an existing event and pass a calendarId that is not the original calendarId used to create the event in the first place. an IllegalStateException will return

createOrUpdateEvent(
eventId: String
calendarId: String!
startAt: String!
endAt: String!
title: String
body: String
): Event

Arguments#


eventId
Note: optional if don't pass one a random one will be generated

calendarId
Note: any non existing calendarId will result in the creation of a new calendar and this event will be owned by it

startAt

endAt

title

body
the size of the body will be limited soon. ( we don't aim to be a storage service ) . an appropriate usage might be a short text or link to where you actually want to store it.

Type#

Event#

Example#

mutation{
createOrUpdateEvent(
eventId:""
title:"business lunch"
body:"prepare to talk about your numbers"
calendarId:"calid"
startAt:"2022-01-01T11:45:00"
endAt:"2022-01-01T12:45:00"
){
id
}
}