v1.28
over 1 year ago by Khizar Naeem
New Time-off endpoints.
Added
Time-off API
We have released a whole new time-off API which makes it even easier to add, update, and review employee PTO. The new API uses worker_id
as the identifier vs contract_id
.
Sample Request
Create a time-off request using the following format
curl --request POST \
--url https://api.letsdeel.com/rest/v1/people/0123abcd-e031-4f1e-93d4-6bc66e8c4727/time-offs \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}' \
--header 'content-type: multipart/form-data' \
--form type=VACATION \
--form start_date=2023-11-03 \
--form end_date=2023-11-05 \
--form reason=Holiday