curl --request POST \
--url https://{command_center_host}/api/v1/llm-providers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"requires_auth": true,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 1073741823,
"enabled": true,
"replacements": {
"llm_model": "<string>",
"multimodal_llm_model": "<string>"
}
}
'import requests
url = "https://{command_center_host}/api/v1/llm-providers/{id}"
payload = {
"key": "<string>",
"requires_auth": True,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 1073741823,
"enabled": True,
"replacements": {
"llm_model": "<string>",
"multimodal_llm_model": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
requires_auth: true,
api_key_credential_id: '<string>',
base_url: '<string>',
provider_args: {},
max_concurrency: 1073741823,
enabled: true,
replacements: {llm_model: '<string>', multimodal_llm_model: '<string>'}
})
};
fetch('https://{command_center_host}/api/v1/llm-providers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/llm-providers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'requires_auth' => true,
'api_key_credential_id' => '<string>',
'base_url' => '<string>',
'provider_args' => [
],
'max_concurrency' => 1073741823,
'enabled' => true,
'replacements' => [
'llm_model' => '<string>',
'multimodal_llm_model' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/llm-providers/{id}"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{command_center_host}/api/v1/llm-providers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/llm-providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "llmp_3f8a1c2d-...",
"key": "<string>",
"org_id": "<string>",
"kind": "<string>",
"requires_auth": true,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 123,
"enabled": true,
"archived_at": "2026-08-26T10:00:26.380Z",
"created_at": "2026-08-26T10:00:26.380Z",
"updated_at": "2026-08-26T10:00:26.380Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Update an LLM provider
Partial update - only the fields in the body change. org_id is not accepted - scope is create-only. The rules of the create apply to the provider as it is after the update. requires_auth: false clears the credential. An archived provider returns 404. An organization-scoped caller writing a tenant-wide provider gets 403. enabled: false sets each agent engine that uses one of its models as its own back to the default model, and a later enabled: true does not restore them. It returns 409 RESOURCE_IN_USE when a default model or a backup model list (of the tenant or of an organization) names one of its models, with details.settings naming those settings and an organization the caller cannot read as “another organization”; when an engine would find no default model; or when an agent of an organization the caller cannot write uses one of its models. When one of its models is the Text LLM model or the Multimodal model of the tenant, replacements names the model that takes its place, else the call returns 409. A Discovery model among its models is cleared, so discovery uses the Text LLM model.
curl --request POST \
--url https://{command_center_host}/api/v1/llm-providers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"requires_auth": true,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 1073741823,
"enabled": true,
"replacements": {
"llm_model": "<string>",
"multimodal_llm_model": "<string>"
}
}
'import requests
url = "https://{command_center_host}/api/v1/llm-providers/{id}"
payload = {
"key": "<string>",
"requires_auth": True,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 1073741823,
"enabled": True,
"replacements": {
"llm_model": "<string>",
"multimodal_llm_model": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
requires_auth: true,
api_key_credential_id: '<string>',
base_url: '<string>',
provider_args: {},
max_concurrency: 1073741823,
enabled: true,
replacements: {llm_model: '<string>', multimodal_llm_model: '<string>'}
})
};
fetch('https://{command_center_host}/api/v1/llm-providers/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/llm-providers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'requires_auth' => true,
'api_key_credential_id' => '<string>',
'base_url' => '<string>',
'provider_args' => [
],
'max_concurrency' => 1073741823,
'enabled' => true,
'replacements' => [
'llm_model' => '<string>',
'multimodal_llm_model' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/llm-providers/{id}"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{command_center_host}/api/v1/llm-providers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/llm-providers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"requires_auth\": true,\n \"api_key_credential_id\": \"<string>\",\n \"base_url\": \"<string>\",\n \"provider_args\": {},\n \"max_concurrency\": 1073741823,\n \"enabled\": true,\n \"replacements\": {\n \"llm_model\": \"<string>\",\n \"multimodal_llm_model\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "llmp_3f8a1c2d-...",
"key": "<string>",
"org_id": "<string>",
"kind": "<string>",
"requires_auth": true,
"api_key_credential_id": "<string>",
"base_url": "<string>",
"provider_args": {},
"max_concurrency": 123,
"enabled": true,
"archived_at": "2026-08-26T10:00:26.380Z",
"created_at": "2026-08-26T10:00:26.380Z",
"updated_at": "2026-08-26T10:00:26.380Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Authorizations
Body
Response
The updated provider
The credential holding the API key; null without one. A provider created before credentials could be attached may require auth with this null: it resolves its key by credential name, which v1 does not show. Attach a credential to such a provider by setting this field.

