Skip to content

Update workspace settings

PATCH/v1/workspaces/{workspace_uid}/settings

Changes the workspace's settings. Omitted fields are left unchanged.

vm_exec_enabled controls whether Run a command on a VM is allowed in this workspace. It is off by default. AI assistants use that endpoint to run commands on your VMs.

Requires the owner or admin role.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

workspace_uidstringRequired

The workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Request body

vm_exec_enabledboolean

Allow running commands on the workspace's VMs through the API.

Response

200

The settings were saved. Returns the current settings.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
vm_exec_enabledbooleanRequired

Whether Run a command on a VM is allowed in this workspace.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.