Leap0

Update an object storage mount

Update an existing object storage mount on a running sandbox. Changing `bucket`, `mount_path`, or `read_only` causes the mount to be remounted. Setting `prefix`, `access_key_id`, or `secret_access_key` to an empty string clears that value.

PATCH
/v1/sandbox/{sandboxID}/mounts/{mountID}

Update an existing object storage mount on a running sandbox. Changing bucket, mount_path, or read_only causes the mount to be remounted. Setting prefix, access_key_id, or secret_access_key to an empty string clears that value.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token in the Authorization header. Alternatively, use the leap0-authorization header.

In: header

Path Parameters

sandboxID*string

Unique sandbox identifier.

mountID*string

Unique mount identifier.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

bucket?string

Bucket name in the S3-compatible object storage provider.

mount_path?string

Absolute sandbox path where the bucket contents will appear.

endpoint?string

Full S3-compatible endpoint URL.

Formaturi
prefix?string

Optional object prefix to expose as the visible mount root. Use an empty string to clear it.

read_only?boolean

Whether the mount should be attached read-only inside the sandbox.

access_key_id?string

Access key id for the S3 bucket. Use an empty string to clear it.

secret_access_key?string

Secret access key for the S3 bucket. Use an empty string to clear it.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.leap0.dev/v1/sandbox/string/mounts/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "mnt-abc123",  "type": "object-storage",  "bucket": "string",  "mount_path": "string",  "prefix": "string",  "read_only": true}
{  "message": "string",  "errors": [    {      "field": "string",      "error": "string"    }  ]}
{  "message": "string"}
{  "message": "string"}
{  "message": "string"}