Shares: Nextcloud Nextcloud Shares
insert update delete REST
- Catalog:
Nextcloud - Schema:
Nextcloud - Primary Keys:
share_id - Label: Nextcloud Shares
Can retrieve data and change data using insert, update and delete.
Summary
Shares of the connected account, one row per share. Writable: insert creates a share, update changes one or more fields in a single request, delete removes the share.
API Source
- Endpoint:
/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 311 |
| Full scan rows per minute | 635 |
The result can be cached on the client.
Table Columns
The columns of the table Shares 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 |
|---|---|---|---|---|---|
can_ |
char |
itgen_ncl_can_delete | filters on the platform, can_ |
Whether the connected account may remove the share. | |
can_ |
char |
itgen_ncl_can_edit | filters on the platform, can_ |
Whether the connected account may change the share. | |
displayname_ |
varchar2 |
itgen_ncl_displayname_owner | filters on the platform, displayname_ |
Display name of uid_owner. | |
expiration |
varchar2 |
itgen_ncl_expiration | filters on the platform, writable, expiration |
Expiry date of the share, where one is set. | |
hide_ |
char |
itgen_ncl_hide_download | filters on the platform, writable, hide_ |
Whether downloading through a public link is hidden. | |
item_ |
int64 |
itgen_ncl_item_size | filters on the platform, item_ |
Size of the shared item in bytes. | |
item_ |
varchar2 |
itgen_ncl_item_type | filters on the platform, item_ |
Whether the shared item is a file or a folder. | |
label |
varchar2 |
itgen_ncl_label | filters on the platform, writable, label |
Label of a public link or email share. | |
mimetype |
varchar2 |
itgen_ncl_mimetype | filters on the platform, mimetype |
MIME type of the shared item; empty for a folder. | |
note |
varchar2 |
itgen_ncl_note | filters on the platform, writable, note |
Note attached to the share. | |
password |
varchar2 |
itgen_ncl_password | filters on the platform, writable | Password of a public link share. Write-only: never answered on a read, accepted on insert and on update. | |
path |
varchar2 |
itgen_ncl_path | filters on the platform, writable, path |
Path of the shared file or folder, relative to the account's own files. Required on insert. | |
permissions |
int32 |
itgen_ncl_permissions | filters on the platform, writable, permissions |
Permission bitmask of the share. | |
share_ |
datetime |
itgen_ncl_share_date | filters on the platform, writable, stime |
Moment the share was created (UTC). | |
share_ |
varchar2 |
itgen_ncl_share_id | filters on the platform, id |
Identifier of the share. Required to update or delete; never a value either writes. | |
share_ |
int32 |
itgen_ncl_share_type | filters on the platform, writable, share_ |
Type of share: 0 user, 1 group, 3 public link, 4 email, 6 federated, 7 circle, 10 room, others per the platform's own registry. Required on insert. | |
share_ |
varchar2 |
itgen_ncl_share_with | filters on the platform, writable, share_ |
Login name, group or address the share is with; empty for a public link. | |
share_ |
varchar2 |
itgen_ncl_share_with_displayname | filters on the platform, share_ |
Display name of share_with. | |
token |
varchar2 |
itgen_ncl_token | filters on the platform, token |
Token of a public link share; empty for any other share type. | |
uid_ |
varchar2 |
itgen_ncl_uid_owner | filters on the platform, uid_ |
Login name of the account the shared item belongs to. | |
url |
varchar2 |
itgen_ncl_url | filters on the platform, url |
Public URL of a public link share; empty for any other share type. |