putAIProvider
PUT
/api/v1/ai/provider
const url = 'https://example.com/api/v1/ai/provider';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"api_key_secret_key":"example","auto_triage":true,"base_url":"example","model":"example","type":"anthropic"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
api_key_secret_key
required
string
auto_triage
boolean
base_url
string
model
required
string
type
required
string
key
additional properties
any
Responses
Section titled “ Responses ”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
key
additional properties
any
Example
{ "type": "anthropic"}default
Section titled “default”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" }}