/shifts/:shift/swap Permission level: 5

post/shifts/{shift}/swap

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Path parameters

shiftinteger required

shift id

Request body application/x-www-form-urlencoded

swapstring required

Array of user_shift_id's (eg. "1435,5667") , you get user_shift_id with schedule.tradelist and swap bit set to 1

reasonstring required

Response

200

statusinteger
datastring
errorunknown

Example response

{
  "status": 1
}

Changes