Copy File
curl --request POST \
--url https://api.zerodrive.dev/v1/files/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"destination": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: '<string>', destination: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/files/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/copy"
payload = {
"source": "<string>",
"destination": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Copy File
Duplicate a file to a new destination in the vault.
POST
https://api.zerodrive.dev
/
v1
/
files
/
copy
Copy File
curl --request POST \
--url https://api.zerodrive.dev/v1/files/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "<string>",
"destination": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: '<string>', destination: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/files/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/copy"
payload = {
"source": "<string>",
"destination": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
