Copy a file or folder
POST
Copies inside the live box; symlinks and special files are skipped. Needs a storage node agent with copy support (otherwise 400, details.code agent_outdated).
apiToken storage:files:writeheader
AuthorizationBearer <token>A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.
Scope: storage:files:write
orderId*numberapplication/json- body
overwrite?booleanReplace an existing item of the same kind (file over file, folder over folder). Without it an existing destination is a 409 with details.code already_exists; a file and a folder never replace each other (409, type_mismatch).
from*stringto*stringOperation completed or accepted; asynchronous actions may still be running.
application/json- response
copied*booleanfrom*stringto*stringbytes*numberentries*numbercurl -X POST 'https://api.deluxhost.net/v1/services/0/storage/files/copy' \ -H "Authorization: Bearer $DELUXHOST_TOKEN" \ -H 'Content-Type: application/json' \ -d '{ "from": "string", "to": "string"}'Example Response
{ "copied": true, "from": "string", "to": "string", "bytes": 0, "entries": 0}