Get department
Get department. See the OpenAPI-defined parameters, request body, and responses below.
GET
/Department/{id}Get department. See the OpenAPI-defined parameters, request body, and responses below.
OpenAPI description: Retorna o departamento identificado por id, incluindo a cota mensal e os IDs de seus membros.
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
This operation does not accept a request body.
Example request
curl --request GET \
--url 'https://api.zild.ai/Department/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY'
Responses
| Status | Description | Response body |
|---|---|---|
200 | Dados do departamento. | application/json · DepartmentDto |
Example response (200):
{
"id": 0,
"tenantId": 0,
"name": "string",
"monthlyQuotaAmount": 0,
"tenantUserIds": [
0
]
}
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 |