cURL
curl --request DELETE \ --url https://api.projectcor.com/v1/company/leaves-types \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 111 }'
{ "id": 111 }
Deletes a custom leave type. Only custom leave types (with a company_id) can be deleted.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Leave type ID to delete
Leave type deleted successfully