Skip to main content
PATCH
Update the approval mode for one or more run types.
Scope: policy:settings:write. See API Tokens.

Authorizations

Authorization
string
header
required

CloudThinker token: a personal access token ct_pat_… (fine-grained scopes, created in Settings) or an OAuth access token ct_oat_… (1 hour, from the OAuth flow). Send Authorization: Bearer <token>. Scopes have the form module:resource:read|write; write includes read.

Headers

If-Match
string
required

The ETag from the last GET. A mismatch returns 412.

Idempotency-Key
string

Unique per logical write. A retry with the same key and body returns the first result.

Required string length: 1 - 255

Path Parameters

workspace_id
string<uuid>
required

Workspace to act in. Every call names it.

Body

application/json

Send run_types, ai_judgment_in_conversations or both.

run_types
RunTypeModes · object | null

Run types to change. Omit a run type to keep it; send null to reset it.

ai_judgment_in_conversations
boolean | null

Whether a conversation may pick a mode that uses AI judgment.

Response

OK

How agent actions get approved, per run type.

run_types
RunTypeModes · object
required

Approval mode set per run type.

ai_judgment_in_conversations
boolean
required

Whether a conversation may pick a mode that uses AI judgment.