Copy a file
curl --request POST \
--url https://api.storiza.store/apps/{id}/files/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"destination": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', destination: '<string>'})
};
fetch('https://api.storiza.store/apps/{id}/files/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/files/copy"
payload = {
"path": "<string>",
"destination": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Done",
"data": {
"ok": true
}
}
App files
Copy a file
Copy a file or directory within the app’s volume. The copy counts against the same dataset quota, so a copy can fail on space where the original fit.
Required API key permission: apps:write
POST
/
apps
/
{id}
/
files
/
copy
Copy a file
curl --request POST \
--url https://api.storiza.store/apps/{id}/files/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"destination": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>', destination: '<string>'})
};
fetch('https://api.storiza.store/apps/{id}/files/copy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/apps/{id}/files/copy"
payload = {
"path": "<string>",
"destination": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Done",
"data": {
"ok": true
}
}
Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Minimum string length:
1Body
application/json
Was this page helpful?