Update Time Off Request

PATCH {{baseUrl}}/hris/time-off-requests/employees/:employee_id/time-off-requests/:id?raw=false

Update Time Off Request

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"employee_id"=>"12345", "policy_id"=>"12345", "status"=>"approved", "description"=>"Enjoying some sun.", "start_date"=>"2022-04-01", "end_date"=>"2022-04-01", "request_date"=>"2022-03-21", "request_type"=>"vacation", "approval_date"=>"2022-03-21", "units"=>"hours", "amount"=>3.5, "day_part"=>"morning", "notes"=>{"employee"=>"Relaxing on the beach for a few hours.", "manager"=>"Enjoy!"}, "policy_type"=>"sick"}

HEADERS

KeyDatatypeRequiredDescription
x-apideck-consumer-idstring(Required) ID of the consumer which you want to get or push data from
x-apideck-app-idstring(Required) The ID of your Unify application
x-apideck-service-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"status_code":200,"status":"OK","service":"bamboohr","resource":"time-off-requests","operation":"update","data":{"id":"12345"}}