DELETE
/api/public/v1/departments/{departmentId}Delete a department
Delete a department. Job titles inside it must be removed first.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
departmentId | string | Required | Department ID. |
DELETEExample request
curl
curl -X DELETE "https://www.pxb.app/api/public/v1/departments/{departmentId}" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key"200Example response
json
{
"message": "Department deleted successfully.",
"content": {}
}