Update an LLM provider
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
}
'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
}
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
})
};
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
]),
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}")
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}")
.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}"
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": {}
}Usage
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.
POST
/
api
/
v1
/
llm-providers
/
{id}
Update an LLM provider
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
}
'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
}
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
})
};
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
]),
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}")
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}")
.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}"
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
application/json
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.

