Pular para o conteúdo

PATCH /v1/departments/{id}

PATCH
/v1/departments/{id}
curl --request PATCH \
--url https://seu-endereco-da-api/v1/departments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "confidential": true, "color": "example", "autoDistributionEnabled": true, "distributionMode": "split" }'

Permissão que a Chave de acesso precisa: Gerenciar departamentos (departments:manage).

id
required
string
Media typeapplication/json
object
name
string
>= 1 characters
confidential
boolean
color
string
autoDistributionEnabled
boolean
distributionMode
string
nullable
Allowed values: split sequencial aleatorio balanceado
Media typeapplication/json
object
id
required
string
name
required
string
color
required
string
nullable
autoDistributionEnabled
required
boolean
distributionMode
required
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
memberCount
required

How many people answer in this department

number

Example generated

{
"id": "example",
"name": "example",
"color": "example",
"autoDistributionEnabled": true,
"distributionMode": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z",
"memberCount": 1
}

Department name already in use