time-off
Patch time off
Updates the resource identified by id using data.
patch/time-off/{id}
Request
- Base URL: https://api.hoorayhr.io
- URL: https://api.hoorayhr.io/time-off/{id}
- Auth: API key in header authorization
Path parameters
idinteger required
Request body
Example request
{
"status": 5
}Response
success
Example response
{
"id": 5,
"userId": 1,
"budgetCalculated": 8,
"budgetAdjustment": 2,
"budgetTotal": 480,
"notes": "I would like to attend the wedding of my sister",
"start": "2022-02-15T14:01:17.516Z",
"end": "2022-02-15T18:01:17.516Z",
"pause": 30,
"tags": [
{
"id": 2,
"name": "Hours",
"archived": null
}
],
"status": 1,
"leaveTypeId": 1,
"leaveTypeRuleId": 2,
"timeOffType": "LEAVE",
"labelIds": [
1,
2,
3
],
"labels": [
{
"id": 5,
"name": "Long term leave",
"type": "LEAVE",
"systemCategoryType": "car",
"createdAt": "2022-02-23T14:01:17.516Z",
"updatedAt": "2022-02-23T14:01:17.516Z"
}
],
"timezone": "Europe/Amsterdam",
"createdAt": "2022-02-15T14:01:17.516Z",
"updatedAt": "2022-02-23T14:01:17.516Z",
"userIdApproved": 3,
"reply": "Enjoy the wedding!"
}Changes
No recorded changes to this operation across all 1 revision of this API.