v1

latestOpenAPI 3.0.02026-07-26254134307.1 KB
Shifts

Update shift

Update a shift.

Required scope: shifts:write

patch/shifts/{shift_id}

Path parameters

shift_idstring required

The Shift ID

Request body

namestring

Name of the shift

color'black' | 'grey' | 'pink' | 'purple' | 'blue' | 'teal' | 'green' | 'yellow' | 'orange' | 'red'

Color of the shift

timezonestring

A timezone name as defined in the IANA tz database

teammate_idsResourceID[]

List of all the teammate ids who will be part of this shift. Alternatively, you can supply emails as a resource alias.

Example request

{
  "times": {
    "mon": {
      "start": "09:00",
      "end": "17:00"
    },
    "tue": {
      "start": "09:00",
      "end": "17:00"
    },
    "wed": {
      "start": "09:00",
      "end": "17:00"
    },
    "thu": {
      "start": "09:00",
      "end": "17:00"
    },
    "fri": {
      "start": "09:00",
      "end": "17:00"
    },
    "sat": {
      "start": "09:00",
      "end": "17:00"
    },
    "sun": {
      "start": "09:00",
      "end": "17:00"
    }
  }
}

Response

No content