Skip to navigation

Add Department

Adds 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 required, at most 200 characters, with no special characters, and must be unique in the company: 400 on name, “A department with this name already exists.” Repeating the same request is harmless.
  • A plan with a department limit refuses more departments with 403.
  • There is no delete.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringRequired1-200 characters
Department name. Unique in the company, no special characters.

Response

The department was added.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error