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

read

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
curl https://cotlet.dev/api/v1/bizneo/absence-types \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("bizneo", "list_absence_types")
Node.js
const result = await cotlet.call('bizneo', 'list_absence_types');
CLI
cotlet call bizneo list_absence_types

Example response

JSON

{
  "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
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.