Skip to main content

updateRoomsQuota

FolderArrayWrapper updateRoomsQuota(UpdateRoomsQuotaRequestDto)

PUT /api/2.0/files/rooms/roomquota

Change the room quota limit

Sets the same custom storage limit, in bytes, on every listed room and streams the updated rooms back in the order they were given. The per-room quota feature has to be on for the portal, and the value must stay within the portal own limit, otherwise the call is refused before anything is written. 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: rooms processed before the offending one keep their new limit, so a failed call has to be checked room by room. Only numeric room ids are processed, which means ids of rooms stored in a connected third-party account are silently skipped. A room whose limit already equals the requested value is left untouched and still returned. To go back to the portal default use PUT api/2.0/files/rooms/resetquota, and to drop the custom limit entirely send a quota of -1 to PUT api/2.0/files/rooms/{id}.

Parameters​

NameInTypeDescriptionNotes
UpdateRoomsQuotaRequestDtobodyUpdateRoomsQuotaRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The rooms as they are after the new limit was appliedFolderArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The storage quota for rooms (for an AI agent, for agents) is turned off, quota exceeds the storage limit of the portal, 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