Skip to main content
PUT
/
v1
/
volumes
/
{id}
/
file
Upload one file directly into a volume with a signed grant
import requests

url = "https://api.13-215-85-171.sslip.io/v1/volumes/{id}/file"

payload = "<string>"
headers = {"Content-Type": "application/octet-stream"}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
{
  "error": "<string>",
  "error_detail": {
    "message": "<string>",
    "retryable": true,
    "suggested_action": "<string>",
    "step_index": 123,
    "attempt": 123,
    "max_attempts": 123,
    "cache_subject": "<string>",
    "build_id": "<string>",
    "request_id": "<string>",
    "details": {}
  },
  "request_id": "<string>",
  "build_id": "<string>"
}

Path Parameters

id
string
required

Volume ID

Query Parameters

grant
string
required

Signed short-lived direct volume file capability token.

Body

application/octet-stream

The body is of type file.

Response

File uploaded