Skip to main content
PUT
Set or clear the per-workspace AI mode override.
Accepts mode"managed", "byok", or null to clear the per-workspace override and fall back to your account default. Provider and model are account-level; set them with Update AI Defaults. For BYOK, supply your provider key to the workspace as an environment variable (e.g. ANTHROPIC_API_KEY).

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Workspace ID

Body

application/json
mode
string | null

"managed", "byok", or null to clear the per-workspace override.

Response

200 - application/json

Updated AI mode

mode
string
required

Effective AI mode after resolving overrides.

source
enum<string>
required

Source of the effective AI mode for a workspace.

Available options:
workspace,
user_default