Create a Volume
curl --request POST \
--url https://api.cycls.ai/v1/volume/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "shared-data"
}
'import requests
url = "https://api.cycls.ai/v1/volume/create"
payload = { "name": "shared-data" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'shared-data'})
};
fetch('https://api.cycls.ai/v1/volume/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"created": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Volumes
Create a Volume
Explicitly create a volume (idempotent). Deploys referencing an unknown volume also create it; content operations never do.
POST
https://api.cycls.ai
/
v1
/
volume
/
create
Create a Volume
curl --request POST \
--url https://api.cycls.ai/v1/volume/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "shared-data"
}
'import requests
url = "https://api.cycls.ai/v1/volume/create"
payload = { "name": "shared-data" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'shared-data'})
};
fetch('https://api.cycls.ai/v1/volume/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"created": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeaderHTTPBearer
Your Cycls API key, from https://cloud.cycls.com. Sent as the X-API-Key header. This is the CYCLS_API_KEY the CLI uses.
Body
application/json
Volume name
Example:
"shared-data"