Skip to main content
PUT
/
browsers
/
{id}
/
fs
/
set_file_permissions
Set file or directory permissions/ownership
curl --request PUT \
  --url https://api.onkernel.com/browsers/{id}/fs/set_file_permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>",
  "mode": "<string>",
  "owner": "<string>",
  "group": "<string>"
}
'
{
  "code": "bad_request",
  "message": "Missing required field: app_name",
  "details": [
    {
      "code": "invalid_input",
      "message": "Provided version string is not semver compliant"
    }
  ],
  "inner_error": {
    "code": "invalid_input",
    "message": "Provided version string is not semver compliant"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Body

application/json
path
string
required

Absolute path whose permissions are to be changed.

mode
string
required

File mode bits (octal string, e.g. 644).

owner
string

New owner username or UID.

group
string

New group name or GID.

Response

Permissions updated