Skip to content

Update Config

PUT
/api/ai-configs/{config_id}
curl --request PUT \
--url http://localhost:8080/api/ai-configs/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api_key": "example", "model": "example", "base_url": "example", "label": "example", "is_default": true }'
config_id
required
Config Id
string
Media typeapplication/json
AIConfigUpdate
object
api_key
Any of:
string
model
Any of:
string
base_url
Any of:
string
label
Any of:
string
is_default
Any of:
boolean
Examplegenerated
{
"api_key": "example",
"model": "example",
"base_url": "example",
"label": "example",
"is_default": true
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}