Change Permissions
Filesystem
Change Permissions
Change mode and/or owner of a workspace path.
PUT
Change Permissions
Overview
Applieschmod and/or chown to a workspace path. Changing uid/gid requires CAP_CHOWN in the sandbox — most production sandboxes drop this capability, so only mode will succeed. At least one of mode, uid, or gid should be set.
Path Parameters
Browser session ID (UUID).
Body
Workspace-relative path to modify.
New Unix mode (octal).
New owner UID. Requires
CAP_CHOWN in the sandbox.New owner GID. Requires
CAP_CHOWN in the sandbox.Example Request
Response
Success Response (200)
The modified workspace-relative path.
Error Responses
| Status | Description |
|---|---|
400 | Invalid path, mode, uid, or gid. |
401 | Unauthorized — invalid or missing API key. |
404 | Session or path not found. |