Make this the organization's settings for its client
curl --request POST \
--url https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default', 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}/default",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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
Make this the organization's settings for its client
deprecated
Promotes an archived profile to the client’s settings and archives the current settings, in one transaction. Naming the current settings is a no-op.
POST
/
api
/
llm-gateway
/
admin
/
agent-runtime-profiles
/
{slug}
/
default
Make this the organization's settings for its client
curl --request POST \
--url https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default', 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}/default",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/llm-gateway/admin/agent-runtime-profiles/{slug}/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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 profile, now the settings for its client
A profile joined with the contract of its current_version.