Skip to main content
PUT
/
api
/
workspaces
/
{id}
/
ai-config
Update workspace AI configuration.
curl --request PUT \
  --url https://api.rigbox.dev/api/workspaces/{id}/ai-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "api_key": "<string>",
  "mode": "managed",
  "model": "<string>",
  "provider": "google"
}
'
{
  "mode": "managed",
  "model": "<string>",
  "provider": "google",
  "status": "managed_active",
  "updated_at": "2023-11-07T05:31:56Z"
}
Accepts mode, provider, api_key, and model. Omitted fields keep their current value. Set a field to null to clear it.

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
api_key
string | null
mode
null | enum<string>
Available options:
managed,
byok
model
string | null
provider
null | enum<string>
Available options:
google,
openai,
anthropic

Response

200 - application/json

Updated AI configuration

mode
enum<string>
required
Available options:
managed,
byok
model
string
required
provider
enum<string>
required
Available options:
google,
openai,
anthropic
status
enum<string>
required
Available options:
managed_active,
byok_active,
invalid_missing_key
updated_at
string<date-time>
required