Skip to main content

resetRoomQuota

FolderArrayWrapper resetRoomQuota(UpdateRoomsRoomIdsRequestDto)

PUT /api/2.0/files/rooms/resetquota

Reset the room quota limit

Returns every listed room to the default room quota of the portal and streams the updated rooms back in the order they were given. This is not the same as removing the limit: the room stops carrying its own value and starts following the portal default, which a portal administrator can change at any time. The per-room quota feature has to be on, the caller must be a manager of each listed room, and an archived room or a room in the trash is refused. The list is not transactional, so rooms processed before a failing one keep the default and the rest keep what they had. Only numeric room ids are processed, which means ids of rooms stored in a connected third-party account are silently skipped. Use PUT api/2.0/files/rooms/roomquota to set an explicit value, and a quota of -1 in PUT api/2.0/files/rooms/{id} to leave the room with no custom limit at all.

Parameters​

NameInTypeDescriptionNotes
UpdateRoomsRoomIdsRequestDtobodyUpdateRoomsRoomIdsRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The rooms as they are after the default limit was restoredFolderArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The storage quota for rooms (for an AI agent, for agents) is turned off, or the caller may not edit a listed room or it lies in Trash or in the archive--
500A listed room does not exist, or an id is a number that is not a 32-bit integer--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

FolderArrayWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

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