Returns current and future timeoffs for current user
Returns current and future timeoffs for current user. Permissions: All users.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body·
- Type: booleanAll
Day - Type: string | nullComment
- Type: stringFormat: date-timeEnd
Date the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- Type: string | nullFormat: time-spanEnd
Time - Type: integer | nullFormat: int64I
D Signed 64-bit integers (long type).
- Type: stringOrigin
Has next values: 'M' (Manager), 'E' (Employee)
- Type: stringFormat: uuidShift
Works User I D - Type: stringFormat: date-timeStart
Date the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- Type: string | nullFormat: time-spanStart
Time - Type: stringStatus
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"
}