Leave Applications
Create leave application
Create leave application
post/users/leave-applications
Request
- Base URLhttps://user-api.quinyx.com/v2
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"from": "2020-06-27 00:00:00",
"to": "2020-06-27 00:00:00",
"leaveReasonId": "kBep_ZtJ1sce0EXuI_9Evt.4qUR7INSe06UTygqpqLxc",
"managerId": "hd58ElPA.IW0FHctO8oCRAhGTetM2yCxIs.63wgYdfB75C0--",
"leaveMessage": "I am going on vacation",
"allDay": true
}Response
Created leave application
Example response
{
"leaveApp": {
"id": "aidhjTypVxiWxO.E8dXmixitUDIUDj175Av8YZyUjtjxWuWm",
"employeeName": "John Doe",
"leaveReason": "Sick",
"from": "2020-09-01 00:00:00",
"to": "2020-09-01 00:00:00",
"sendDate": "2020-08-20 12:25:00",
"status": "PENDING",
"comment": "Employee's comment",
"allDay": true
}
}Changes
No recorded changes to this operation across all 1 revision of this API.