Skip to main content
Mutation

updateCalendar

Renames or recolors a schedule calendar. Give name, color or both. Requires edit access to the project. Returns the calendar's ID.

Arguments

  • calendarIdID!

    ID of the calendar to change.

  • colorString

    New color of the calendar (see createCalendar), or an empty string for none. Omit to keep it.

  • nameString

    New name of the calendar. Omit to keep it.

  • projectIdID!

    ID of the project.

Returns

ScheduleMutationResult!

Example

mutation UpdateCalendar($calendarId: ID!, $color: String, $name: String, $projectId: ID!) {
  updateCalendar(
    calendarId: $calendarId
    color: $color
    name: $name
    projectId: $projectId
  ) {
    id
  }
}