Skip to navigation

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.
  • name is the current department name, matched exactly (see GET /company/department). An unknown name is refused with 400 on name.
  • new_name follows 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.
namestringRequired
Current exact department name.
new_namestringRequired1-200 characters
New department name. Unique in the company, no special characters.

Response

The department was renamed.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error