Skip to content

putAIProvider

PUT
/api/v1/ai/provider
curl --request PUT \
--url https://example.com/api/v1/ai/provider \
--header 'Content-Type: application/json' \
--data '{ "api_key_secret_key": "example", "auto_triage": true, "base_url": "example", "model": "example", "type": "anthropic" }'
Media typeapplication/json
object
api_key_secret_key
required
string
/^[A-Za-z_][A-Za-z0-9_]{0,127}$/
auto_triage
boolean
base_url
string
<= 512 characters
model
required
string
>= 1 characters <= 200 characters
type
required
string
Allowed values: anthropic openai_compatible
key
additional properties
any

OK

Media typeapplication/json
object
api_key_secret_key

Global secret key that holds the API key.

string
auto_triage
required
boolean
base_url

Empty uses the default URL of the type.

string
configured
required
boolean
model
string
type
string
Allowed values: anthropic openai_compatible
key
additional properties
any
Example
{
"type": "anthropic"
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
details
message
required
string
key
additional properties
any
key
additional properties
any
Examplegenerated
{
"error": {
"code": "example",
"details": "example",
"message": "example"
}
}