Ensure Folder Paths
curl --request POST \
--url https://api.zerodrive.dev/v1/folders/ensure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paths": [
"<string>"
],
"drive_id": "primary"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paths: ['<string>'], drive_id: 'primary'})
};
fetch('https://api.zerodrive.dev/v1/folders/ensure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/folders/ensure"
payload = {
"paths": ["<string>"],
"drive_id": "primary"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Ensure Folder Paths
Create up to 500 folders cleanly, skipping any that already exist.
POST
https://api.zerodrive.dev
/
v1
/
folders
/
ensure
Ensure Folder Paths
curl --request POST \
--url https://api.zerodrive.dev/v1/folders/ensure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paths": [
"<string>"
],
"drive_id": "primary"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({paths: ['<string>'], drive_id: 'primary'})
};
fetch('https://api.zerodrive.dev/v1/folders/ensure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/folders/ensure"
payload = {
"paths": ["<string>"],
"drive_id": "primary"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
