Update Provider
PUT
/v1/settings/providers/{provider_id}
const url = 'https://example.com/v1/settings/providers/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"","type":"openrouter","base_url":"","model_prefix":"","api_key":"example"}'};
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/v1/settings/providers/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "", "type": "openrouter", "base_url": "", "model_prefix": "", "api_key": "example" }'Change a provider; leave out api_key to keep the saved one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider_id
required
Provider Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ProviderInput
object
name
Name
Unique in the organisation; models are added to a provider by it. Defaults to the type’s name, e.g. OpenRouter.
string
type
required
Type
openrouter; openai for an OpenAI-compatible server (LiteLLM, or vLLM for generic models and LoRA adapters); systemone for a server of dedicated decision models (vLLM, or a model’s own).
string
base_url
Base Url
Where its API is. Empty for OpenRouter’s own, https://openrouter.ai/api; otherwise the server’s address, e.g. https://litellm.example.com.
string
model_prefix
Model Prefix
openai only: put before rowlab’s catalog ids, for a gateway that routes them under a prefix, e.g. openrouter/.
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Provider
A provider as the API shows it: without its key.
object
id
required
Id
string
name
required
Name
string
type
required
Type
string
base_url
required
Base Url
string
model_prefix
required
Model Prefix
string
active
required
Active
Whether new runs ask rowlab’s catalog models through it.
boolean
created_at
required
Created At
string format: date-time
Example
{ "type": "openrouter"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}