{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/DeleteHrisAbsencesAbsenceIdPositiveResponse", "title": "DeleteHrisAbsencesAbsenceIdPositiveResponse", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "data": { "type": "object", "properties": { "id": { "type": "string", "description": "The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing." }, "remote_id": { "type": [ "string", "null" ], "description": "The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key." }, "employee_id": { "type": "string", "description": "The Kombo ID of the employee to which the absence belongs to. The ID can be used to retrieve the employee from the `get employees` endpoint." }, "approver_id": { "type": [ "string", "null" ], "description": "**(\u26a0\ufe0f Deprecated - We won't increase coverage for this feature)** The Kombo ID of the employee who is responsible for approving this absence." }, "start_date": { "description": "The date this absence starts in the `yyyy-MM-dd` format.", "type": "null" }, "end_date": { "description": "The date this absence ends in the `yyyy-MM-dd` format.", "type": "null" }, "start_half_day": { "type": [ "boolean", "null" ], "description": "`true` if the absence starts in the middle of the day, `false` if not, and `null` if the absence type doesn't support half-day absences. For multi-day absences, this only applies to the first day of the absence." }, "end_half_day": { "type": [ "boolean", "null" ], "description": "`true` if the absence ends in the middle of the day, `false` if not, and `null` if the absence type doesn't support half-day absences. For multi-day absences, this only applies to the last day of the absence." }, "start_time": { "description": "The time at which this absence starts. Follows the format `HH:mm:ss` (e.g., `14:45:15`).", "type": "null" }, "end_time": { "description": "The time at which this absence ends. Follows the format `HH:mm:ss` (e.g., `14:45:15`).", "type": "null" }, "amount": { "type": [ "number", "null" ], "format": "double", "minimum": -1.7976931348623157e+308, "description": "The amount of time this absence takes." }, "unit": { "type": [ "string", "null" ], "enum": [ "HOURS", "DAYS" ], "description": "The unit of time for this absence. Can be `HOURS` or `DAYS`." }, "status": { "anyOf": [ { "type": "string", "enum": [ "REQUESTED", "APPROVED", "DECLINED", "CANCELLED", "DELETED" ] }, { "type": "string", "description": "If we can't find a clear mapping: The original string passed through." }, { "type": "null" } ], "description": "The absence\u2019s current status. In rare cases where we can\u2019t find a clear mapping, the original string is passed through." }, "employee_note": { "type": [ "string", "null" ], "description": "A note the employee has added to this absence." }, "type_id": { "type": [ "string", "null" ], "description": "The Kombo absence type ID of this absence." }, "remote_created_at": { "description": "The date and time the object was created in the remote system.", "type": [ "string", "null" ], "format": "date-time", "externalDocs": { "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString" } }, "remote_updated_at": { "description": "A timestamp retrieved from the remote system, describing when the resource was last updated.", "type": [ "string", "null" ], "format": "date-time", "externalDocs": { "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString" } }, "changed_at": { "description": "The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.", "type": "string", "format": "date-time", "externalDocs": { "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString" } }, "remote_deleted_at": { "description": "The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.", "type": [ "string", "null" ], "format": "date-time", "externalDocs": { "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString" } }, "remote_data": { "type": [ "object", "null" ], "additionalProperties": true, "description": "Includes the data fetched from the remote system.\nPlease be aware that including this in you scope config might violate other\nscopes that are set.\n\nRemote data always has the endpoint path that we got the data from as the\ntop level key. For example, it could look like: `{ \"/companies\": { ... }}`\n\nThis is not available on all plans. Reach out to Kombo if you need it." } }, "required": [ "id", "remote_id", "employee_id", "approver_id", "start_date", "end_date", "start_half_day", "end_half_day", "start_time", "end_time", "amount", "unit", "employee_note", "type_id", "remote_created_at", "remote_updated_at", "changed_at", "remote_deleted_at", "remote_data" ], "examples": [ { "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 } ] }, "warnings": { "type": "array", "items": { "type": "object", "properties": { "message": { "type": "string" } }, "required": [ "message" ] }, "description": "These are the interaction warnings that are shown in the dashboard. They are meant to provide debug information to you. We recommend logging them to the console." } }, "required": [ "status", "data", "warnings" ] }