hris/timeoffs
Create Timeoffs
Create Timeoffs in any supported Hris software
post/hris/timeoffs
Query parameters
remote_databoolean
Set to true to include data from the original Hris software.
Headers
x-connection-tokenstring required
The connection token
Request body
Example request
{
"employee": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"approver": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"status": "REQUESTED",
"employee_note": "Annual vacation",
"units": "DAYS",
"amount": 5,
"request_type": "VACATION",
"start_time": "2024-07-01T09:00:00Z",
"end_time": "2024-07-05T17:00:00Z",
"field_mappings": {
"custom_field_1": "value1",
"custom_field_2": "value2"
}
}Response
Example response
{
"employee": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"approver": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"status": "REQUESTED",
"employee_note": "Annual vacation",
"units": "DAYS",
"amount": 5,
"request_type": "VACATION",
"start_time": "2024-07-01T09:00:00Z",
"end_time": "2024-07-05T17:00:00Z",
"field_mappings": {
"custom_field_1": "value1",
"custom_field_2": "value2"
},
"id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"remote_id": "timeoff_1234",
"remote_data": {
"raw_data": {
"additional_field": "some value"
}
},
"remote_created_at": "2024-06-15T12:00:00Z",
"created_at": "2024-06-15T12:00:00Z",
"modified_at": "2024-06-15T12:00:00Z"
}