FileContents: Nextcloud Nextcloud File Contents
insert update delete REST
- Catalog:
Nextcloud - Schema:
Nextcloud - Primary Keys:
path - Label: Nextcloud File Contents
Can retrieve data and change data using insert, update and delete.
Summary
Content and metadata of one file, by its path. The content is always read alongside the metadata, whichever columns are selected. Insert creates a file (or a folder with is_folder), update overwrites a file with file_contents or moves a file or folder with path, and delete removes it.
API Source
- Endpoint:
/remote.php/dav/files/ncadmin/{path}
Performance Characteristics
| Characteristic | Value |
|---|---|
| Average access latency (ms) | 355 |
| Full scan rows per minute | 18,900 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
path |
varchar2 |
File to read, relative to the connected account's own root. |
Table Columns
The columns of the table FileContents 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 |
|---|---|---|---|---|---|
content_ |
varchar2 |
itgen_ncl_content_type | filters on the platform, writable, d:getcontenttype |
MIME type; empty for a folder. | |
etag |
varchar2 |
itgen_ncl_etag | filters on the platform, writable, d:getetag |
Entity tag: the version Nextcloud gives this file, changing whenever its content changes. | |
file_ |
blob |
itgen_ncl_file_contents | filters on the platform, writable | Content of the file. Empty for a folder. | |
file_ |
int64 |
itgen_ncl_file_id | filters on the platform, writable, oc:fileid |
Identifier stable across a rename or move. | |
has_ |
char |
itgen_ncl_has_preview | filters on the platform, writable, nc:has- |
Whether the server can generate a thumbnail for the entry. | |
is_ |
char |
itgen_ncl_is_folder | filters on the platform, writable, d:resourcetype/ |
Whether the entry is a folder rather than a file. | |
last_ |
datetime |
itgen_ncl_last_modified | filters on the platform, writable, d:getlastmodified |
Moment last modified. | |
owner_ |
varchar2 |
itgen_ncl_owner_id | filters on the platform, writable, oc:owner- |
Login name of the entry's owner. | |
path |
varchar2 |
itgen_ncl_path | filters on the platform, writable, d:href |
Path relative to the connected account's own root. | |
permissions |
varchar2 |
itgen_ncl_permissions | filters on the platform, writable, oc:permissions |
Permission letters the connected account has on the entry. | |
size_ |
int64 |
itgen_ncl_size_bytes | filters on the platform, writable, d:getcontentlength |
Size in bytes; empty for a folder. |