v1

latestOpenAPI 3.1.02026-08-0662251219.8 KB
Departments

Create department

This endpoint creates a department.

post/v2/companies/{companyId}/departments

Request body

namestring required

Name of the department

externalIdstring

External id of the department

Example request

{
  "externalId": "department-external-id"
}

Response

OK

idstring uuid required

Example response

{
  "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
}