Skip to main content
PUT
Change Permissions

Overview

Applies chmod 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

string
required
Browser session ID (UUID).

Body

string
required
Workspace-relative path to modify.
integer
New Unix mode (octal).
integer
New owner UID. Requires CAP_CHOWN in the sandbox.
integer
New owner GID. Requires CAP_CHOWN in the sandbox.

Example Request

Response

Success Response (200)

string
The modified workspace-relative path.
Example Response:

Error Responses