List Departments
Requires Admin or Owner role.
My Departments
Accessible by Operators. Returns only departments the user belongs to.
Create Department
Response (201):
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create, update, and delete departments
GET /backend/departments
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"tenant_id": "d6b10acc-2307-413f-a4de-4c2edf3f9a70",
"name": "Sales",
"description": "Sales team",
"member_count": 5,
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
]
}
GET /backend/departments/my
POST /backend/departments
{
"name": "Support",
"description": "Customer support team"
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Department name (max 100 chars, unique per tenant) |
description | string | No | Department description |
{
"id": "uuid",
"tenant_id": "uuid",
"name": "Support",
"description": "Customer support team",
"member_count": 0,
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
PUT /backend/departments/{id}
{
"name": "Premium Support",
"description": "Priority support team"
}
DELETE /backend/departments/{id}