/api/v1/WebDAV
GET /WebDAV/{collectionUuid}/{path} — Download a file (or list a collection — depending on path).
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
For a file path: the file contents. For a directory path: an HTML index page listing the entries.
The path does not exist.
WebDAV is disabled in the base config. The response carries
code: WebdavNotEnabled.
POST /WebDAV/{collectionUuid}/{path} — WebDAV POST — handled by the same code path as GET/HEAD. fylr
WebDAV POST — handled by the same code path as GET/HEAD. fylr accepts it for client compatibility.
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
The POST was processed.
No content
The path does not exist.
WebDAV is disabled in the base config (code: WebdavNotEnabled).
No content
PUT /WebDAV/{collectionUuid}/{path} — Upload a file and link it to the collection.
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
The file was uploaded and linked to a new or existing object.
The response carries an X-Fylr-System-Object-Id header for
each affected object.
No content
The upload was rejected — a dot-prefixed filename (code: DotFilenameNotAllowed), the collection has no upload
configured or no matching object (code: CollectionUploadNoObjectFound), or the instance is in
read-only mode (code: ReadOnlyMode).
A parent collection in the path does not exist, or the target cannot be resolved.
The resource is locked and the request did not carry the
matching lock token (code: ResourceLocked).
WebDAV is disabled in the base config (code: WebdavNotEnabled).
No content
DELETE /WebDAV/{collectionUuid}/{path} — Delete a file.
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
The resource was deleted.
No content
The instance is in read-only mode (code: ReadOnlyMode).
The path does not exist.
The resource is locked and the request did not carry the
matching lock token (code: ResourceLocked).
WebDAV is disabled in the base config (code: WebdavNotEnabled).
No content
HEAD /WebDAV/{collectionUuid}/{path} — Probe a file's existence and metadata.
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
The file exists.
No content
The path does not exist.
WebDAV is disabled in the base config (code: WebdavNotEnabled).
No content
OPTIONS /WebDAV/{collectionUuid}/{path} — Advertise the supported WebDAV methods for this resource.
Access token in the Authorization header:
Authorization: Bearer <token>.
The first path segment is the collection UUID. The WebDAV URL of
a collection (its _hotfolder_upload_urls entry of type
webdav) ends in this UUID. A request to a bare collection UUID
lists that collection.
Any further path segments after the collection UUID are the display names of sub-collections, ending in a file display name. May be empty to address the collection itself.
The DAV:, Allow: and related headers describe what is
supported. Body is empty. Note that the advertised Allow
set lists COPY and PROPPATCH for client compatibility, even
though COPY returns 405 and PROPPATCH behaves like PROPFIND.
No content
WebDAV is disabled in the base config (code: WebdavNotEnabled).
No content
Last updated