Swaps

Decline shift swaps

Declines shift swap requests. Cancels pending swap requests between source and target shifts. The role parameter is to signify the API caller's intent, caller can behave as a manager or employee. Returns the updated shifts after the decline operation completes.

post/management/v2/shifts/swap:decline

Request

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

Request body

sourceShiftIdsinteger[]
targetShiftIdsinteger[]
messagestring
role'EMPLOYEE' | 'MANAGER'

Response

A successful response.

successboolean

Changes

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