cURL
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 }
Creates a new custom leave type for your company.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Name of the leave type
Leave type created successfully