Delete absence
Changed onDelete this absence.
<Note> This endpoint requires the permission **Manage absences** to be enabled in [your scope config](/scopes). </Note>Example Request Body
{
"absence_id": "wXJMxwDvPAjrJ4CyqdV9"
}
Request
- Base URLhttps://api.kombo.dev/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The Kombo ID of the absence
Headers
ID of the integration you want to interact with.
Request body
Response
DELETE /hris/absences/:absence_id Positive response
Example response
{
"data": {
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"employee_id": "JDdUy9kiH5APaGizFrgNmQjM",
"approver_id": "AgXEispYPP1BbToHpqnqcpxy",
"start_date": "2022-08-04",
"end_date": "2022-08-05",
"start_half_day": true,
"end_half_day": false,
"start_time": "13:15:00",
"end_time": "17:00:00",
"amount": 2,
"unit": "DAYS",
"status": "APPROVED",
"employee_note": "Visiting my family.",
"type_id": "xzZoKssDaMZAd62kxayzzQvD",
"remote_created_at": "2022-08-07T14:01:29.196Z",
"remote_updated_at": "2022-08-07T14:01:29.196Z",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null
}
}Changes
- breaking
the response property
/became optional for the status - breaking
response property
data/statuslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
the
/response's property type changed fromstringtonullfor status - breaking
the
/response's property type changed fromstringtonull, and format fromdate-timeto no format for status - breaking
the
/response's property type changed fromstringtonullfor status - breaking
the
/response's property type changed fromstringtonull, and format fromdate-timeto no format for status - info
added the new optional request property
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
the
response property const valuesuccesswas added for the status - info
removed the
successenum value from theresponse property for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
to the response with the status
- breaking