Create Partitioned Drive
curl --request POST \
--url https://api.zerodrive.dev/v1/drives \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Clients",
"description": "<string>",
"quota_gb": 1000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Clients', description: '<string>', quota_gb: 1000})
};
fetch('https://api.zerodrive.dev/v1/drives', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/drives"
payload = {
"name": "Clients",
"description": "<string>",
"quota_gb": 1000
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create Partitioned Drive
Create an isolated secondary drive inside your plan’s quota.
POST
https://api.zerodrive.dev
/
v1
/
drives
Create Partitioned Drive
curl --request POST \
--url https://api.zerodrive.dev/v1/drives \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Clients",
"description": "<string>",
"quota_gb": 1000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Clients', description: '<string>', quota_gb: 1000})
};
fetch('https://api.zerodrive.dev/v1/drives', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/drives"
payload = {
"name": "Clients",
"description": "<string>",
"quota_gb": 1000
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
