Get a Signed Upload URL for a Volume Object
curl --request POST \
--url https://api.cycls.ai/v1/volume/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"volume": "shared-data",
"path": "models/model.bin"
}
'import requests
url = "https://api.cycls.ai/v1/volume/upload"
payload = {
"volume": "shared-data",
"path": "models/model.bin"
}
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({volume: 'shared-data', path: 'models/model.bin'})
};
fetch('https://api.cycls.ai/v1/volume/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Volumes
Get a Signed Upload URL for a Volume Object
Strict: the volume must already exist, uploads never create one.
POST
https://api.cycls.ai
/
v1
/
volume
/
upload
Get a Signed Upload URL for a Volume Object
curl --request POST \
--url https://api.cycls.ai/v1/volume/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"volume": "shared-data",
"path": "models/model.bin"
}
'import requests
url = "https://api.cycls.ai/v1/volume/upload"
payload = {
"volume": "shared-data",
"path": "models/model.bin"
}
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({volume: 'shared-data', path: 'models/model.bin'})
};
fetch('https://api.cycls.ai/v1/volume/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<string>"
}{
"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
Response
Successful Response
Signed URL, valid for 15 minutes