Skip to main content
PUT
/
company
/
leaves-types
/
{leaveTypeId}
Update Leave Type
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"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

leaveTypeId
integer
required

Leave type ID to update

Body

application/json
name
string
required

Name of the leave type

Response

200 - application/json

Leave type updated 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