Update Leave Type
Renames an existing leave type. Shared rules: see Writing data.
- Only the name can change; the category (
leave_type) cannot. Past leave records keep working, they follow the type and not the name. nameis the current leave type name, matched exactly (seeGET /leave/type). System leave types can’t be renamed.new_namemust be unique in the company, ignoring upper/lower case and outer spaces.- Repeating after success gives
400“No leave type named …” for the old name.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
name
Current exact leave type name.
new_name
New leave type name. Unique in the company, ignoring case and outer spaces.
Response
The leave type was renamed.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
