Update department
Update department. See the OpenAPI-defined parameters, request body, and responses below.
PUT
/Department/{id}Update department. See the OpenAPI-defined parameters, request body, and responses below.
OpenAPI description: Atualiza nome, cota mensal e a lista completa de membros do departamento. Membros omitidos da lista são removidos. TenantUserIds deve conter apenas membros do tenant autenticado. Cota null significa ilimitada; zero bloqueia o uso.
Authentication
Authentication required. Send your user API key in the X-API-Key header.
Parameters
| Name | Location | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
id | path | integer · int32 | Yes | — | — |
Request body
Content type: application/json · Schema: DepartmentDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
tenantId | integer · int32 | No | — | — |
name | string | Yes | — | minLength: 1; maxLength: 300 |
monthlyQuotaAmount | number · double | No | — | nullable; min: 0; max: 99999999999999 |
tenantUserIds | array<integer · int32> | No | — | nullable |
Example request
curl --request PUT \
--url 'https://api.zild.ai/Department/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"tenantId": 0,
"name": "string",
"monthlyQuotaAmount": 0,
"tenantUserIds": [
0
]
}'
Responses
| Status | Description | Response body |
|---|---|---|
204 | Departamento atualizado, sem conteúdo. | No response body is defined. |
Data models
DepartmentDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
tenantId | integer · int32 | No | — | — |
name | string | Yes | — | minLength: 1; maxLength: 300 |
monthlyQuotaAmount | number · double | No | — | nullable; min: 0; max: 99999999999999 |
tenantUserIds | array<integer · int32> | No | — | nullable |