WebDAV
List, download, upload, move, copy and delete files and folders on a WebDAV server such as Nextcloud, ownCloud or SharePoint. Typical uses: drop export files in a shared folder, collect files left by users.
webdav lswebdav lswebdav existswebdav existswebdav getwebdav getwebdav putwebdav putwebdav mkdirwebdav mkdirwebdav deletewebdav deletewebdav movewebdav movewebdav copywebdav copy
webdav ls <url>
Description
List a folder without credentials: the resource and its children. Result: JSON array of {path, name, is_dir, size, last_modified, content_type, etag}
List a folder without credentials: the resource and its children. Result: JSON array of {path, name, is_dir, size, last_modified, content_type, etag}
Parameters
url: The http or https URL of the resource, without credentials - String - required
url: The http or https URL of the resource, without credentials - String - required
admin
webdav ls "http://127.0.0.1:24080/reports/"
mentdb
[{"path": "/reports/", "name": "reports", "is_dir": true, "size": null, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": null, "etag": null}, {"path": "/reports/2026 é.csv", "name": "2026 é.csv", "is_dir": false, "size": 18, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": "text/csv; charset=utf-8", "etag": "31936598-1793854512-18"}, {"path": "/reports/moved.csv", "name": "moved.csv", "is_dir": false, "size": 18, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": "text/csv; charset=utf-8", "etag": "31936600-1793854512-18"}]
webdav ls <url> <json_params>
Description
List with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), depth (1; 0 gives the resource alone), max_bytes, max_items
List with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), depth (1; 0 gives the resource alone), max_bytes, max_items
Parameters
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
admin
webdav ls "http://127.0.0.1:24080/reports/" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
[{"path": "/reports/", "name": "reports", "is_dir": true, "size": null, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": null, "etag": null}, {"path": "/reports/2026 é.csv", "name": "2026 é.csv", "is_dir": false, "size": 18, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": "text/csv; charset=utf-8", "etag": "31936598-1793854512-18"}, {"path": "/reports/moved.csv", "name": "moved.csv", "is_dir": false, "size": 18, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": "text/csv; charset=utf-8", "etag": "31936600-1793854512-18"}]
Fixed result from a real call on a local test server (127.0.0.1): depth 0
admin
webdav ls "http://127.0.0.1:24080/reports/" "{\"username\": \"alice\", \"password\": \"dav_password\", \"depth\": 0}"
mentdb
[{"path": "/reports/", "name": "reports", "is_dir": true, "size": null, "last_modified": "Thu, 05 Nov 2026 04:55:12 GMT", "content_type": null, "etag": null}]
Fixed result from a real call on a local test server (127.0.0.1): a wrong password
admin
webdav ls "http://127.0.0.1:24080/reports/" "{\"username\": \"alice\", \"password\": \"wrong\"}"
mentdb
Sorry, an error appears (webdav ls failed on 127.0.0.1:24080: HTTP 401 (authentication refused: check the credentials)).
webdav exists <url>
Description
Test if a resource exists: 1 or 0. Any other status (401, 403, 500...) is an error
Test if a resource exists: 1 or 0. Any other status (401, 403, 500...) is an error
Parameters
url: The http or https URL of the resource, without credentials - String - required
url: The http or https URL of the resource, without credentials - String - required
admin
webdav exists "http://127.0.0.1:24080/reports/moved.csv"
mentdb
1
webdav exists <url> <json_params>
Description
Test with parameters: the credentials and timeout_ms of webdav ls. trust_all is refused here, as 1 or 0 could not say that TLS was not verified: use webdav ls with depth 0
Test with parameters: the credentials and timeout_ms of webdav ls. trust_all is refused here, as 1 or 0 could not say that TLS was not verified: use webdav ls with depth 0
Parameters
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
admin
webdav exists "http://127.0.0.1:24080/reports/moved.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
1
Fixed result from a real call on a local test server (127.0.0.1): a file that does not exist
admin
webdav exists "http://127.0.0.1:24080/reports/none.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
0
webdav get <url> <out_path>
Description
Download a file. An existing local file is refused. Result: {file, bytes, content_type, etag}
Download a file. An existing local file is refused. Result: {file, bytes, content_type, etag}
Parameters
url: The http or https URL of the resource, without credentials - String - required
out_path: The local file (same rights as file load) - String - required
url: The http or https URL of the resource, without credentials - String - required
out_path: The local file (same rights as file load) - String - required
admin
webdav get "http://127.0.0.1:24080/reports/moved.csv" "tmp/doc_dav_out.csv"
mentdb
{"file": "tmp/doc_dav_out.csv", "bytes": 18, "content_type": "text/csv; charset=utf-8", "etag": "\"31936600-1793854512-18\""}
webdav get <url> <out_path> <json_params>
Description
Download with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), overwrite (false), max_bytes (1 GB)
Download with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), overwrite (false), max_bytes (1 GB)
Parameters
url: The http or https URL of the resource, without credentials - String - required
out_path: The local file - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
out_path: The local file - String - required
json_params: The parameters - String - required
admin
webdav get "http://127.0.0.1:24080/reports/moved.csv" "tmp/doc_dav_out.csv" "{\"username\": \"alice\", \"password\": \"dav_password\", \"overwrite\": true}"
mentdb
{"file": "tmp/doc_dav_out.csv", "bytes": 18, "content_type": "text/csv; charset=utf-8", "etag": "\"31936600-1793854512-18\""}
Fixed result from a real call on a local test server (127.0.0.1): over the limit: no file is left
admin
webdav get "http://127.0.0.1:24080/reports/moved.csv" "tmp/doc_dav_out2.csv" "{\"username\": \"alice\", \"password\": \"dav_password\", \"max_bytes\": 3}"
mentdb
Sorry, an error appears (the file on the server is larger than max_bytes (3 bytes)).
webdav put <url> <local_path>
Description
Upload a file. A file that exists on the server is refused. Result: {url, bytes, status, created}
Upload a file. A file that exists on the server is refused. Result: {url, bytes, status, created}
Parameters
url: The http or https URL of the resource, without credentials - String - required
local_path: The local file (same rights as file load) - String - required
url: The http or https URL of the resource, without credentials - String - required
local_path: The local file (same rights as file load) - String - required
admin
webdav put "http://127.0.0.1:24080/reports/2026 é.csv" "tmp/doc_dav_in.csv"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "bytes": 18, "status": 201, "created": true}
webdav put <url> <local_path> <json_params>
Description
Upload with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), overwrite (false; otherwise If-None-Match: * is sent), max_bytes (1 GB), content_type (application/octet-stream)
Upload with parameters: username with password (basic authentication), or token (bearer), timeout_ms (60000, up to 3600000: the whole call), allow_plain (false: credentials are refused on plain http to a host that is not local), trust_all (false: true accepts any certificate, only for a test server, and the result then has tls_verified false), overwrite (false; otherwise If-None-Match: * is sent), max_bytes (1 GB), content_type (application/octet-stream)
Parameters
url: The http or https URL of the resource, without credentials - String - required
local_path: The local file - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
local_path: The local file - String - required
json_params: The parameters - String - required
admin
webdav put "http://127.0.0.1:24080/reports/2026 é.csv" "tmp/doc_dav_in.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "bytes": 18, "status": 201, "created": true}
Fixed result from a real call on a local test server (127.0.0.1): with overwrite
admin
webdav put "http://127.0.0.1:24080/reports/2026 é.csv" "tmp/doc_dav_in.csv" "{\"username\": \"alice\", \"password\": \"dav_password\", \"overwrite\": true, \"content_type\": \"text/csv\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "bytes": 18, "status": 204, "created": false}
webdav mkdir <url>
Description
Create a folder (MKCOL). The parent must exist. A folder that exists gives an error 405. Result: {url, status}
Create a folder (MKCOL). The parent must exist. A folder that exists gives an error 405. Result: {url, status}
Parameters
url: The http or https URL of the resource, without credentials - String - required
url: The http or https URL of the resource, without credentials - String - required
admin
webdav mkdir "http://127.0.0.1:24080/reports"
mentdb
{"url": "http://127.0.0.1:24080/reports", "status": 201}
webdav mkdir <url> <json_params>
Description
Create a folder with parameters: the credentials and timeout_ms of webdav ls
Create a folder with parameters: the credentials and timeout_ms of webdav ls
Parameters
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
admin
webdav mkdir "http://127.0.0.1:24080/reports" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports", "status": 201}
webdav delete <url>
Description
Delete a file or a folder with all its content. The root of the server is refused. Result: {url, status}
Delete a file or a folder with all its content. The root of the server is refused. Result: {url, status}
Parameters
url: The http or https URL of the resource, without credentials - String - required
url: The http or https URL of the resource, without credentials - String - required
admin
webdav delete "http://127.0.0.1:24080/reports/moved.csv"
mentdb
{"url": "http://127.0.0.1:24080/reports/moved.csv", "status": 204}
webdav delete <url> <json_params>
Description
Delete with parameters: the credentials and timeout_ms of webdav ls
Delete with parameters: the credentials and timeout_ms of webdav ls
Parameters
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
json_params: The parameters - String - required
admin
webdav delete "http://127.0.0.1:24080/reports/moved.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports/moved.csv", "status": 204}
Fixed result from a real call on a local test server (127.0.0.1): a folder and its content
admin
webdav delete "http://127.0.0.1:24080/reports" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports", "status": 204}
webdav move <url> <destination>
Description
Move or rename on the same server. An existing destination is refused. Result: {url, destination, status, replaced}
Move or rename on the same server. An existing destination is refused. Result: {url, destination, status, replaced}
Parameters
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
admin
webdav move "http://127.0.0.1:24080/reports/copy.csv" "/reports/moved.csv"
mentdb
{"url": "http://127.0.0.1:24080/reports/copy.csv", "destination": "http://127.0.0.1:24080/reports/moved.csv", "status": 201, "replaced": false}
webdav move <url> <destination> <json_params>
Description
Move with parameters: the credentials and timeout_ms of webdav ls, overwrite (false)
Move with parameters: the credentials and timeout_ms of webdav ls, overwrite (false)
Parameters
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
json_params: The parameters - String - required
admin
webdav move "http://127.0.0.1:24080/reports/copy.csv" "/reports/moved.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports/copy.csv", "destination": "http://127.0.0.1:24080/reports/moved.csv", "status": 201, "replaced": false}
Fixed result from a real call on a local test server (127.0.0.1): the destination exists
admin
webdav move "http://127.0.0.1:24080/reports/moved.csv" "/reports/2026 é.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
Sorry, an error appears (webdav move failed on 127.0.0.1:24080: HTTP 412 (the destination already exists: set overwrite to true to replace it)).
webdav copy <url> <destination>
Description
Copy on the same server. An existing destination is refused. Result: {url, destination, status, replaced}
Copy on the same server. An existing destination is refused. Result: {url, destination, status, replaced}
Parameters
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
admin
webdav copy "http://127.0.0.1:24080/reports/2026 é.csv" "/reports/copy.csv"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "destination": "http://127.0.0.1:24080/reports/copy.csv", "status": 201, "replaced": false}
webdav copy <url> <destination> <json_params>
Description
Copy with parameters: the credentials and timeout_ms of webdav ls, overwrite (false)
Copy with parameters: the credentials and timeout_ms of webdav ls, overwrite (false)
Parameters
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
json_params: The parameters - String - required
url: The http or https URL of the resource, without credentials - String - required
destination: A full URL on the same server, or a path starting with / - String - required
json_params: The parameters - String - required
admin
webdav copy "http://127.0.0.1:24080/reports/2026 é.csv" "/reports/copy.csv" "{\"username\": \"alice\", \"password\": \"dav_password\"}"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "destination": "http://127.0.0.1:24080/reports/copy.csv", "status": 201, "replaced": false}
Fixed result from a real call on a local test server (127.0.0.1): a full URL, replacing the destination
admin
webdav copy "http://127.0.0.1:24080/reports/2026 é.csv" "http://127.0.0.1:24080/reports/copy.csv" "{\"username\": \"alice\", \"password\": \"dav_password\", \"overwrite\": true}"
mentdb
{"url": "http://127.0.0.1:24080/reports/2026%20%C3%A9.csv", "destination": "http://127.0.0.1:24080/reports/copy.csv", "status": 204, "replaced": true}
