Swaps

Confirm shift swaps

Confirms and executes shift swaps between source and target shifts. Swaps the employees between the specified shifts. The trial parameter allows testing the swap without committing. The override parameter bypasses validation rules. Returns the updated shifts and any errors encountered. The swapCost field indicates the cost difference after the swap (negative if cost increased).

post/management/v2/shifts/swap:confirm

Request

  • Base URL
    https://your-subdomain.deputy.deputy.com/api
  • URL
    https://your-subdomain.deputy.deputy.com/api/management/v2/shifts/swap:confirm
  • Auth
    API key in header OAuth

Request body

sourceShiftIdsinteger[]
targetShiftIdsinteger[]
role'EMPLOYEE' | 'MANAGER'
trialboolean
overrideboolean

Response

A successful response.

successboolean

Changes

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