Create Time Off
Time Off
Create Time Off
Create Time Off using the same endpoint as assignments with extra attributes.
POST
Create Time Off
Authorizations
Body
application/json
Example:
"2019-02-01"
Example:
"2019-01-21"
Available options:
time-off Example:
"time-off"
Example:
16539
Example:
79786
Available options:
full-day, half-of-day, quarter-of-day, half-and-quarter-of-day Example:
"full-day"
User with admin rights can set the "approved" status on create, regular users create a pending that must be approved by an admin.
Available options:
pending, approved Example:
"pending"
Example:
false
Admin who must receive notification for approval
Example:
79786
Switch on/off allocations considering. Allow creating time-off even when the allocated limits are exceeded.
Example:
true
Example:
[68797, 68798]Example:
true
Response
Created
Number of workdays
Example:
10
Example:
"2019-02-01"
Example:
41827
Example:
"2019-01-21"
Example:
"time-off"
Example:
79786
Available options:
full-day, half-of-day, quarter-of-day, half-and-quarter-of-day Example:
"full-day"
Admin who must receive notification for approval
Example:
79786
