POST
/
leave_types
curl --request POST \
  --url https://api.absentify.com/api/v1/leave_types \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "<string>",
  "color": "<string>",
  "needs_approval": true,
  "maximum_absent": true,
  "leave_unit": "days",
  "position": 123,
  "take_from_allowance": true,
  "privacy_hide_leavetype": true,
  "outlook_synchronization_show_as": "free",
  "outlook_synchronization_subject": "<string>",
  "icon": "NoIcon",
  "reason_mandatory": true,
  "reason_hint_text": "<string>",
  "allowance_type_id": "<string>",
  "ignore_schedule": true,
  "sync_option": "Disabled",
  "ignore_public_holidays": true
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

200
application/json
Successful response

The response is of type string.