Skip to main content
Mutation

updateScheduleEvent

Changes an event. Omitted arguments stay unchanged; null clears optional settings, and at least one argument is required. Kind, calendar and start/end times cannot be null. Changing kind resets the fields specific to the old kind. A new start without a dayId re-attaches the event to the day of its new start date; dayId: null detaches it. Requires edit access to the project. Returns the event's ID.

Arguments

  • calendarIdID

    ID of the calendar to move the event to. Omit to keep the current calendar; null is rejected.

  • dayIdID

    ID of the day to attach the event to. Omit to keep its placement; null detaches it from its day, including when changing start.

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

  • New end time, as an ISO 8601 date-time in UTC. Omit to keep the current end; null is rejected.

  • eventIdID!

    ID of the event to change.

  • importantBoolean

    Flags a PREPARATION event as important.

  • New kind of event. Omit to keep the current kind; null is rejected.

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

  • New start time, as an ISO 8601 date-time in UTC. Omit to keep the current start; null is rejected.

  • titleString

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

Returns

ScheduleMutationResult!

Example

mutation UpdateScheduleEvent($calendarId: ID, $dayId: ID, $description: RichTextProjectionInput, $end: DateTime, $eventId: ID!, $important: Boolean, $kind: EventKind, $link: String, $locationId: ID, $locationName: String, $menu: String, $projectId: ID!, $protocol: RichTextProjectionInput, $sceneId: ID, $shotId: ID, $start: DateTime, $title: String) {
  updateScheduleEvent(
    calendarId: $calendarId
    dayId: $dayId
    description: $description
    end: $end
    eventId: $eventId
    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
  }
}