Update a custom shift
Important note: Shift-based schedules use the V3 API and are not compatible with V2 automations. To create automations for Shift-Based Schedules, you need to:
- Update your automations to use the V3 API for all new shift-based schedules
- Keep the V2 endpoint for your existing schedules
An upgrade tool for existing schedules is coming soon; your legacy schedules will keep working in the meantime. Learn more.
Update an existing custom shift.
If the shift has already started, only end_time can be modified.
Authorization
api_key Authorization<token>
The API Key with format Token token=<API_KEY>
In: header
Path Parameters
id*string
The ID of the schedule.
custom_shift_id*string
The ID of the custom shift.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json