createScheduleEvent
Creates an event on a board. Fields that do not apply to the event's kind are ignored. Requires edit access to the project. Returns the new event's ID.
Arguments
boardIdID!ID of the board to add the event to.
calendarIdIDID of the calendar for the event. Defaults to the project's first calendar, which is created if the project has none.
dayIdIDID of the day to attach the event to. Defaults to the board's day on the event's start date, in the project time zone.
descriptionRichTextProjectionInputDescription of the event, as rich text. Used by
SCENE_SHOOTING,PREPARATION,MEETINGandGENERICevents. On updates, omit to leave unchanged; null clears the text and formatting. A client that edits plain text only sends an emptyhtml: the text then becomes paragraphs, and when it equals the stored text the stored formatting is kept.endDateTime!End time, as an ISO 8601 date-time in UTC.
importantBooleanFlags a
PREPARATIONevent as important.kindEventKind!Kind of event to create.
linkStringA URL for a
MEETINGevent, such as a video call link.locationIdIDID of the
Locationof the event. Used byLUNCH_BREAK,COMPANY_MOVEandMEETINGevents.locationNameStringDisplay name of the event's location. Used with
locationId.projectIdID!ID of the project.
protocolRichTextProjectionInputMinutes or notes of a
MEETINGevent, as rich text. On updates, omit to leave unchanged; null clears the text and formatting. A client that edits plain text only sends an emptyhtml: the text then becomes paragraphs, and when it equals the stored text the stored formatting is kept.sceneIdIDID of the scene shot or prepared. Used by
SCENE_SHOOTINGandPREPARATIONevents.shotIdIDID of the shot being prepared. Used by
PREPARATIONevents.startDateTime!Start time, as an ISO 8601 date-time in UTC.
titleStringTitle of the event. Used by
SCENE_SHOOTING,MEETINGandGENERICevents.
Returns
ScheduleMutationResult!Example
mutation CreateScheduleEvent($boardId: ID!, $calendarId: ID, $dayId: ID, $description: RichTextProjectionInput, $end: DateTime!, $important: Boolean, $kind: EventKind!, $link: String, $locationId: ID, $locationName: String, $menu: String, $projectId: ID!, $protocol: RichTextProjectionInput, $sceneId: ID, $shotId: ID, $start: DateTime!, $title: String) {
createScheduleEvent(
boardId: $boardId
calendarId: $calendarId
dayId: $dayId
description: $description
end: $end
important: $important
kind: $kind
link: $link
locationId: $locationId
locationName: $locationName
menu: $menu
projectId: $projectId
protocol: $protocol
sceneId: $sceneId
shotId: $shotId
start: $start
title: $title
) {
id
}
}