Update a profile's display metadata
curl --request PATCH \
--url https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"display_name": "<string>"
}
'import requests
url = "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}"
payload = {
"active": True,
"display_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: true, display_name: '<string>'})
};
fetch('https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}', 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://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'active' => true,
'display_name' => '<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://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}"
payload := strings.NewReader("{\n \"active\": true,\n \"display_name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"active\": true,\n \"display_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": true,\n \"display_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"capabilities": {
"additional_instructions": "",
"allowed_commands": [],
"allowed_tools": [],
"blocked_commands": [],
"blocked_tools": [],
"browser": "native",
"environment": "inherit",
"filesystem": "read_write",
"network": "native",
"preset": "client_default",
"schema_version": 1,
"shell": "native",
"skills": true,
"subagents": true,
"unreviewed_desktop_builds": false
},
"client": "<string>",
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_org_default": true,
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"archived_at": "2023-11-07T05:31:56Z"
}LLM Gateway
Update a profile's display metadata
deprecated
Changes the display name. active is accepted only when it restates the profile’s current state: client settings can’t be switched off, and an archived profile can’t be switched back on (promote it instead).
PATCH
/
api
/
llm-gateway
/
admin
/
agent-runtime-profiles
/
{slug}
Update a profile's display metadata
curl --request PATCH \
--url https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"display_name": "<string>"
}
'import requests
url = "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}"
payload = {
"active": True,
"display_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({active: true, display_name: '<string>'})
};
fetch('https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}', 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://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'active' => true,
'display_name' => '<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://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}"
payload := strings.NewReader("{\n \"active\": true,\n \"display_name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"active\": true,\n \"display_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"active\": true,\n \"display_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"capabilities": {
"additional_instructions": "",
"allowed_commands": [],
"allowed_tools": [],
"blocked_commands": [],
"blocked_tools": [],
"browser": "native",
"environment": "inherit",
"filesystem": "read_write",
"network": "native",
"preset": "client_default",
"schema_version": 1,
"shell": "native",
"skills": true,
"subagents": true,
"unreviewed_desktop_builds": false
},
"client": "<string>",
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"display_name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_org_default": true,
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"version": 123,
"archived_at": "2023-11-07T05:31:56Z"
}Authorizations
ApiKeyOAuth2
Scopes
Response
The updated profile
A profile joined with the contract of its current_version.