Schedule Agent

Batch create or update shifts

Creates or updates multiple shifts in a single request. Maximum 500 items per request. Each item is processed independently - partial failures are allowed. Use id=0 or omit id for creates, provide id for updates. Set async=true to process asynchronously and poll via /api/operations/v2/operations/{id}.

post/agent/schedule/v2/shifts:upsert

Request

  • Base URL
    https://your-subdomain.deputy.deputy.com/api
  • URL
    https://your-subdomain.deputy.deputy.com/api/agent/schedule/v2/shifts:upsert
  • Auth
    API key in header OAuth

Query parameters

asyncboolean

When true, process the request asynchronously. Returns immediately with operationId and pending count. Use /api/operations/v2/operations/{id} to poll for results.

Request body

overrideboolean

When true, bypasses soft validation warnings (untrained, on leave, unavailable). Hard validation errors (overlapping shifts, permission denied) are NOT overridable.

Response

A successful response.

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.