Update Department
Renames a department. Shared rules: see Writing data.
- The body is closed: an unknown field is refused with
400"Unknown field."Counts toward your write budget. nameis the current department name, matched exactly (seeGET /company/department). An unknown name is refused with400onname.new_namefollows the same rules as Add Department: at most 200 characters, no special characters, unique in the company.- Only the name changes. Staff stay in the department. There is no delete.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
name
Current exact department name.
new_name
New department name. Unique in the company, no special characters.
Response
The department was renamed.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
