Skip to main content
POST
/
company
/
leaves-types
Create Leave Type
curl --request POST \
  --url https://api.projectcor.com/v1/company/leaves-types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Custom type of license"
}
'
{
  "name": "Custom type of license",
  "company_id": 111,
  "icon_name": "ICON",
  "created_at": "2024-12-10 17:57:12",
  "updated_at": "2024-12-10 17:57:12",
  "id": 111
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Name of the leave type

Response

200 - application/json

Leave type created successfully

id
integer
name
string
type_code
string
company_id
integer | null
created_at
string<date-time>
updated_at
string<date-time>
deleted_at
string<date-time> | null
icon_name
string