Delete 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.
Delete a custom shift by ID. When the shift is not started, it deletes the shift entirely. If the shift is already started, it sets the end_time to now. It returns Bad Request when shift is already ended.
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.
Response Body
application/json
application/json
application/json
application/json
application/json