Move Files items
POST
/api/v1/files/move
const url = 'https://example.com/api/v1/files/move';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"destination":"example","paths":["example"],"replace":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/files/move \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "destination": "example", "paths": [ "example" ], "replace": true }'Requires a signed-in User with the data scope, read access to each source and write access to the destination. It returns 400 for invalid input, 403 when access is denied, 404 when a source is missing, or 507 when storage is unavailable. Route: /api/v1/files/move. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
destination
required
string
paths
required
Array<string>
replace
boolean
Examplegenerated
{ "destination": "example", "paths": [ "example" ], "replace": true}Responses
Section titled “Responses”Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}