workspace-code-execution-policy

Set Workspace Code Execution Policy

Set a workspace's code-execution policy, replacing any existing one.

An organization owner/admin, or an owner/admin of this workspace, may write it. The policy can only narrow what the deployment permits: turning code execution off for the workspace, and lowering the loop and execution ceilings. It never turns a sandbox the deployment has not configured on.

put/v1/workspaces/{workspace_id}/code-execution-policy

Path parameters

workspace_idstring uuid required

Request body

default_purpose_hintstring nullable

Hint used when a request declares otari_code_execution without one of its own

enabledboolean required

False refuses code execution for this workspace

exec_timeout_sinteger nullable

Ceiling on one execution's runtime in seconds; only ever lowers the effective limit, so at most 60

max_iterationsinteger nullable

Ceiling on tool-loop iterations; only ever lowers the effective limit, so at most 25

Response

Successful Response

configuredboolean required
created_atstring nullable required
default_purpose_hintstring nullable required
enabledboolean required
exec_timeout_sinteger nullable required
max_iterationsinteger nullable required
sandbox_configuredboolean required
updated_atstring nullable required
workspace_idstring uuid required

Changes