跳到主要内容

aiAgentsResetQuota

AiFolderArrayWrapper aiAgentsResetQuota(AiAgentsResetQuotaRequest)

PUT /api/2.0/ai/agents/resetquota

Reset agents' quota

Returns the listed AI agent rooms to the portal's default storage quota, forwarding roomIds to the DocSpace AI service unchanged. The answer is that service's payload, one updated room per entry. This is the counterpart of PUT api/2.0/ai/agents/agentquota and takes no quota value of its own. Rooms already on the default are unaffected.

Parameters​

NameInTypeDescriptionNotes
AiAgentsResetQuotaRequestbodyAiAgentsResetQuotaRequest[required]

Responses​

Status codeDescriptionTypeResponse headers
200The updated agent rooms, one entry each.AiFolderArrayWrapper-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI 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-
413The request body is larger than 100 KB, the JSON parser's limit on this route.AiErrorResponse-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

AiFolderArrayWrapper

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json