RoomsByFileId: Nextcloud itgen_ncl_roomsbyfileid_plural
read only REST
- Catalog:
Spreed - Schema:
Spreed - Label: itgen_ncl_roomsbyfileid_plural
Get the token of the room associated to the given file id This is the counterpart of self::getRoomByShareToken() for file ids instead of share tokens, although both return the same room token if the given file id and share token refer to the same file. If there is no room associated to the given file id a new room is created; the new room is a public room associated with a "file" object with the given file id. Unlike normal rooms in which the owner is the user that created the room these are special rooms without owner (although self joined users with direct access to the file become persistent participants automatically when they join until they explicitly leave or no longer have access to the file). In any case, to create or even get the token of the room, the file must be shared and the user must be the owner of a public share of the file (like a link share, for example) or have direct access to that file; an error is returned otherwise. A user has direct access to a file if they have access to it (or to an ancestor) through a user, group, circle or room share (but not through a link share, for example), or if they are the owner of such a file.
Can only retrieve data.
Summary
This is the counterpart of self::getRoomByShareToken() for file ids instead of share tokens, although both return the same room token if the given file id and share token refer to the same file. If there is no room associated to the given file id a new room is created; the new room is a public room associated with a "file" object with the given file id. Unlike normal rooms in which the owner is the user that created the room these are special rooms without owner (although self joined users with direct access to the file become persistent participants automatically when they join until they explicitly leave or no longer have access to the file). In any case, to create or even get the token of the room, the file must be shared and the user must be the owner of a public share of the file (like a link share, for example) or have direct access to that file; an error is returned otherwise. A user has direct access to a file if they have access to it (or to an ancestor) through a user, group, circle or room share (but not through a link share, for example), or if they are the owner of such a file.
API Source
- Endpoint:
/ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId} - Operation:
get /ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId}
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 305 |
| Full scan rows per minute | 18,900 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
api |
`` | v1 | Values: v1. | |
fileId |
`` | ID of the file |
Table Columns
The columns of the table RoomsByFileId are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
ocs_ |
varchar2 |
itgen_ncl_ocs_data_token | filters on the platform, writable, ocs. |
||
ocs_ |
varchar2 |
itgen_ncl_ocs_meta_itemsperpage | filters on the platform, writable, ocs. |
||
ocs_ |
varchar2 |
itgen_ncl_ocs_meta_message | filters on the platform, writable, ocs. |
||
ocs_ |
varchar2 |
itgen_ncl_ocs_meta_status | filters on the platform, writable, ocs. |
||
ocs_ |
int64 |
itgen_ncl_ocs_meta_statuscode | filters on the platform, writable, ocs. |
||
ocs_ |
varchar2 |
itgen_ncl_ocs_meta_totalitems | filters on the platform, writable, ocs. |