Returns current and future timeoffs for current user

​

Returns current and future timeoffs for current user. Permissions: All users.

Headers

  • The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.

Body·

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • Signed 64-bit integers (long type).

  • Has next values: 'M' (Manager), 'E' (Employee)

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • Has next values: 'A' (Approved), 'P' (Pending), 'R' (Rejected) by default is P

Responses

Request Example for post/shiftworks/v2/Availabilities/timeoffs
curl /shiftworks/v2/Availabilities/timeoffs \
  --request POST \
  --header 'Content-Type: application/json-patch+json' \
  --header 'DCKey: YOUR_SECRET_TOKEN' \
  --data '{
  "ID": null,
  "ShiftWorksUserID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
  "StartDate": "",
  "EndDate": "",
  "AllDay": true,
  "Status": "",
  "StartTime": "21:30:00",
  "EndTime": "21:30:00",
  "Comment": null,
  "Origin": ""
}'
{
  "ID": null,
  "ShiftWorksUserID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
  "StartDate": "2026-10-16T20:55:07.577Z",
  "EndDate": "2026-10-16T20:55:07.577Z",
  "AllDay": true,
  "Status": "string",
  "StartTime": "21:30:00",
  "EndTime": "21:30:00",
  "Comment": null,
  "Origin": "string"
}