Skip to main content
PATCH
/
api
/
captain
/
config
/
{section}
Update config section
curl --request PATCH \
  --url http://localhost:63372/api/captain/config/{section} \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "primary": "anthropic",
  "fallback": [
    "openai"
  ]
}
'
{
  "ok": true
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Path Parameters

section
enum<string>
required

Config section name

Available options:
providers,
cron,
captain,
agents

Body

application/json

The body is of type object.

Response

Success

ok
boolean
required
Example:

true