List absence types
The absence types your company configured, and whether each accepts hours or needs a document.
GET https://cotlet.dev/api/v1/bizneo/absence-types
Returns the types in the Absence type list of the request form, which is what your company set up. allows_hours says whether a request can be for a few hours with a start and an end time. document_required says whether Bizneo asks for a supporting document. needs_approval says whether a manager has to decide. Use the name as absence_type in the other tools.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/bizneo/absence-types \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("bizneo", "list_absence_types") const result = await cotlet.call('bizneo', 'list_absence_types'); cotlet call bizneo list_absence_types Example response
{
"types": [
{
"name": "Vacation",
"unit": "days",
"allows_hours": false,
"document_required": false,
"needs_approval": true
},
{
"name": "Medical appointment",
"unit": "hours",
"allows_hours": true,
"document_required": true,
"needs_approval": true
}
]
}