Skip to main content
Mutation

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.

  • calendarIdID

    ID of the calendar for the event. Defaults to the project's first calendar, which is created if the project has none.

  • dayIdID

    ID 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.

  • Description of the event, as rich text. Used by SCENE_SHOOTING, PREPARATION, MEETING and GENERIC events. On updates, omit to leave unchanged; null clears the text and formatting. A client that edits plain text only sends an empty html: the text then becomes paragraphs, and when it equals the stored text the stored formatting is kept.

  • End time, as an ISO 8601 date-time in UTC.

  • importantBoolean

    Flags a PREPARATION event as important.

  • Kind of event to create.

  • locationIdID

    ID of the Location of the event. Used by LUNCH_BREAK, COMPANY_MOVE and MEETING events.

  • locationNameString

    Display name of the event's location. Used with locationId.

  • menuString

    Menu items of a LUNCH_BREAK event, as a JSON-encoded array of strings.

  • projectIdID!

    ID of the project.

  • Minutes or notes of a MEETING event, as rich text. On updates, omit to leave unchanged; null clears the text and formatting. A client that edits plain text only sends an empty html: the text then becomes paragraphs, and when it equals the stored text the stored formatting is kept.

  • sceneIdID

    ID of the scene shot or prepared. Used by SCENE_SHOOTING and PREPARATION events.

  • shotIdID

    ID of the shot being prepared. Used by PREPARATION events.

  • startDateTime!

    Start time, as an ISO 8601 date-time in UTC.

  • titleString

    Title of the event. Used by SCENE_SHOOTING, MEETING and GENERIC events.

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
  }
}