OrganizationWithDepartments

A request or response body; the type column links to the schemas it refers to.

OrganizationWithDepartments

FieldTypeRequiredDescription
idstring (uuid)yes—
slugstringyes—
namestringyes—
descriptionstring | nullyes—
archived_atstring (date-time) | nullyes

When set, the record is retired and should not gain new children.

created_atstring (date-time)yes—
departmentsarray of DepartmentSummaryyes

Every department in the organization, nested ones included, ordered by name.

jsonExample
{
  "id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
  "slug": "string",
  "name": "string",
  "description": "string",
  "archived_at": "2026-01-01T00:00:00.000Z",
  "created_at": "2026-01-01T00:00:00.000Z",
  "departments": [
    {
      "id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
      "organization_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
      "slug": "string",
      "name": "string",
      "description": "string",
      "parent_department_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
      "archived_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}