aiAgentsUpdateQuota
AiFolderArrayWrapper aiAgentsUpdateQuota(AiAgentsUpdateQuotaRequest)
PUT /api/2.0/ai/agents/agentquota
Update agents' quota
Sets the storage quota of the listed AI agent rooms in one call, forwarding roomIds and quota to the DocSpace AI service unchanged. The answer is that service's payload, one updated room per entry. A quota applies to the room's stored files, not to the model usage of its chats. Use PUT api/2.0/ai/agents/resetquota to return rooms to the portal default instead of naming a number.
Parameters
| Name | In | Type | Description | Notes |
|---|---|---|---|---|
| AiAgentsUpdateQuotaRequest | body | AiAgentsUpdateQuotaRequest | [required] |
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The updated agent rooms, one entry each. | AiFolderArrayWrapper | - |
| 401 | Missing asc_auth_key cookie or Authorization header. | AiErrorResponse | - |
| 403 | AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API. | AiErrorResponse | - |
| 413 | The request body is larger than 100 KB, the JSON parser's limit on this route. | AiErrorResponse | - |
| 500 | Unhandled failure. The reason is logged server-side and never echoed back. | AiErrorResponse | - |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json