Skip to main content
POST
/
v1
/
sandboxes
/
{id}
/
files
/
permissions
Set file permissions
import requests

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

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

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

print(response.text)

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Body

application/json
path
string
required

Sandbox path whose mode will be updated. Relative paths resolve using the same filesystem contract as PathRequest.path.

permissions
string
required
Example:

"0755"

user
string

Optional sandbox user for relative-path resolution and ownership.

Response

204

Permissions updated