cURL
curl --request PUT \ --url https://api.projectcor.com/v1/company/leaves-types/{leaveTypeId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Custom type - edited" } '
{ "id": 111, "name": "Custom type - edited", "type_code": "CODE", "company_id": 1111, "created_at": "2024-12-10T17:57:12.000Z", "updated_at": "2024-12-10T18:19:13.000Z", "deleted_at": null, "icon_name": "ICON" }
Updates a custom leave type. Only the name can be modified.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Leave type ID to update
Name of the leave type
Leave type updated successfully