Copy
nextcloud.copy
ActionFiles & storageconnection required
Calls the Nextcloud API with the connection's credentials.
Copy a file or folder to another path within the account's files. The destination's parent folder must already exist.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- Nextcloud
- Secret shape
- {"username": "…", "password": "<app password>"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
path Path inside the account's Nextcloud files, e.g. /Documents/report.pdf. | string | Yes | — | — | /Documents/report.pdf |
destination Where the copy should be written, e.g. /Archive/report.pdf. | string | Yes | — | — | /Archive/report.pdf |
overwrite Replace the destination when something is already there; off by default. | boolean | No | false | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"destination": "/Archive/report.pdf",
"overwrite": false,
"path": "/Documents/report.pdf"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
path The resource that was copied. | string | — |
destination Where the copy was written. | string | — |
created True when the destination was new (HTTP 201). | boolean | — |
overwrote True when an existing destination was replaced. | boolean | — |
status_code The WebDAV status Nextcloud answered with. | number | — |
{
"created": false,
"destination": "",
"overwrote": false,
"path": "",
"status_code": 0
}See Copy run in a workflow.
In a technical demo we add the Nextcloud connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.