invantive documentation
Invantive Support ForumsLog In / Sign Up

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_delete char itgen_ncl_can_delete filters on the platform, can_delete Whether the connected account may remove the share.
can_edit char itgen_ncl_can_edit filters on the platform, can_edit Whether the connected account may change the share.
displayname_owner varchar2 itgen_ncl_displayname_owner filters on the platform, displayname_owner 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_download char itgen_ncl_hide_download filters on the platform, writable, hide_download Whether downloading through a public link is hidden.
item_size int64 itgen_ncl_item_size filters on the platform, item_size Size of the shared item in bytes.
item_type varchar2 itgen_ncl_item_type filters on the platform, item_type 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_date datetime itgen_ncl_share_date filters on the platform, writable, stime Moment the share was created (UTC).
share_id 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_type int32 itgen_ncl_share_type filters on the platform, writable, share_type 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_with varchar2 itgen_ncl_share_with filters on the platform, writable, share_with Login name, group or address the share is with; empty for a public link.
share_with_displayname varchar2 itgen_ncl_share_with_displayname filters on the platform, share_with_displayname 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_owner varchar2 itgen_ncl_uid_owner filters on the platform, uid_owner 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.