Skip to main content
POST
/
v1
/
volumes
/
{id}
/
files
/
mkdir
Create a directory in a volume
import requests

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

payload = { "path": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(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>"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Volume ID

Body

application/json
path
string
required

Absolute volume-internal path rooted at /. Relative paths are rejected and .. may not escape the volume root. Volume file routes do not accept sandbox cwd or per-call user semantics.

Response

Directory created