Update an agent
curl --request POST \
--url https://{command_center_host}/api/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"main_engine": "<string>",
"secondary_engine": "<string>",
"specialty_id": "<string>",
"remote_execution": true,
"credential_config": [
{
"order": 2,
"credential_id": "<string>",
"is_required": true
}
],
"accessible_credential_ids": [
"<string>"
],
"disabled_rule_ids": [
"<string>"
]
}
'import requests
url = "https://{command_center_host}/api/v1/agents/{id}"
payload = {
"name": "<string>",
"main_engine": "<string>",
"secondary_engine": "<string>",
"specialty_id": "<string>",
"remote_execution": True,
"credential_config": [
{
"order": 2,
"credential_id": "<string>",
"is_required": True
}
],
"accessible_credential_ids": ["<string>"],
"disabled_rule_ids": ["<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({
name: '<string>',
main_engine: '<string>',
secondary_engine: '<string>',
specialty_id: '<string>',
remote_execution: true,
credential_config: [{order: 2, credential_id: '<string>', is_required: true}],
accessible_credential_ids: ['<string>'],
disabled_rule_ids: ['<string>']
})
};
fetch('https://{command_center_host}/api/v1/agents/{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/agents/{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([
'name' => '<string>',
'main_engine' => '<string>',
'secondary_engine' => '<string>',
'specialty_id' => '<string>',
'remote_execution' => true,
'credential_config' => [
[
'order' => 2,
'credential_id' => '<string>',
'is_required' => true
]
],
'accessible_credential_ids' => [
'<string>'
],
'disabled_rule_ids' => [
'<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/agents/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<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/agents/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/agents/{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 \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "agt_a9bf5a2b-...",
"name": "linux-ops - web-01",
"status": "idle",
"org_id": "org_460b541c-...",
"tenant_id": "ten_115bea44-...",
"host_id": "hst_8272f9b4-...",
"specialty_id": "spc_9e274f8c-...",
"main_engine": "qwen3-coder-480b",
"secondary_engine": "qwen3-coder-30b",
"remote_execution": true,
"credential_config": [
{
"credential_id": "crd_1f3c8a90-...",
"credential_role": "ssh_username",
"order": 123,
"is_required": true
}
],
"disabled_rule_ids": [
"<string>"
],
"accessible_credential_ids": [
"<string>"
],
"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": {}
}Agents
Update an agent
Partial update. host_id and plugin_ids are not accepted here and are dropped silently.
POST
/
api
/
v1
/
agents
/
{id}
Update an agent
curl --request POST \
--url https://{command_center_host}/api/v1/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"main_engine": "<string>",
"secondary_engine": "<string>",
"specialty_id": "<string>",
"remote_execution": true,
"credential_config": [
{
"order": 2,
"credential_id": "<string>",
"is_required": true
}
],
"accessible_credential_ids": [
"<string>"
],
"disabled_rule_ids": [
"<string>"
]
}
'import requests
url = "https://{command_center_host}/api/v1/agents/{id}"
payload = {
"name": "<string>",
"main_engine": "<string>",
"secondary_engine": "<string>",
"specialty_id": "<string>",
"remote_execution": True,
"credential_config": [
{
"order": 2,
"credential_id": "<string>",
"is_required": True
}
],
"accessible_credential_ids": ["<string>"],
"disabled_rule_ids": ["<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({
name: '<string>',
main_engine: '<string>',
secondary_engine: '<string>',
specialty_id: '<string>',
remote_execution: true,
credential_config: [{order: 2, credential_id: '<string>', is_required: true}],
accessible_credential_ids: ['<string>'],
disabled_rule_ids: ['<string>']
})
};
fetch('https://{command_center_host}/api/v1/agents/{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/agents/{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([
'name' => '<string>',
'main_engine' => '<string>',
'secondary_engine' => '<string>',
'specialty_id' => '<string>',
'remote_execution' => true,
'credential_config' => [
[
'order' => 2,
'credential_id' => '<string>',
'is_required' => true
]
],
'accessible_credential_ids' => [
'<string>'
],
'disabled_rule_ids' => [
'<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/agents/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<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/agents/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/agents/{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 \"name\": \"<string>\",\n \"main_engine\": \"<string>\",\n \"secondary_engine\": \"<string>\",\n \"specialty_id\": \"<string>\",\n \"remote_execution\": true,\n \"credential_config\": [\n {\n \"order\": 2,\n \"credential_id\": \"<string>\",\n \"is_required\": true\n }\n ],\n \"accessible_credential_ids\": [\n \"<string>\"\n ],\n \"disabled_rule_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "agt_a9bf5a2b-...",
"name": "linux-ops - web-01",
"status": "idle",
"org_id": "org_460b541c-...",
"tenant_id": "ten_115bea44-...",
"host_id": "hst_8272f9b4-...",
"specialty_id": "spc_9e274f8c-...",
"main_engine": "qwen3-coder-480b",
"secondary_engine": "qwen3-coder-30b",
"remote_execution": true,
"credential_config": [
{
"credential_id": "crd_1f3c8a90-...",
"credential_role": "ssh_username",
"order": 123,
"is_required": true
}
],
"disabled_rule_ids": [
"<string>"
],
"accessible_credential_ids": [
"<string>"
],
"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": {}
}Authorizations
An API key minted in Command Center (Settings -> API Keys), sent as Authorization: Bearer 2501_ak_.... A Command Center session cookie is also accepted.
Path Parameters
Body
application/json
Response
The updated agent
Example:
"agt_a9bf5a2b-..."
Example:
"linux-ops - web-01"
Available options:
idle, running, error, archived Example:
"org_460b541c-..."
Example:
"ten_115bea44-..."
Example:
"hst_8272f9b4-..."
Example:
"spc_9e274f8c-..."
Example:
"qwen3-coder-480b"
Example:
"qwen3-coder-30b"
Show child attributes
Show child attributes
Example:
"2026-08-26T10:00:26.380Z"
Example:
"2026-08-26T10:00:26.380Z"
⌘I

