Skip to main content
POST
Update an agent

Authorizations

Authorization
string
header
required

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

id
string
required

Body

application/json
name
string
Required string length: 1 - 100
central_ids
string[]

Assigned Centrals. Adds command environments alongside the Host; existing tasks retain their captured choices.

Maximum array length: 16
host_id
string

The current Host ID, accepted from clients that send the whole agent back. Changing an existing Host returns 400. A Host can be assigned to a hostless agent. Central assignments preserve the Host.

main_engine
string | null

A model key, or null to inherit the default main engine. Left out, it keeps its value. A key equal to the model the engine inherits keeps following the default, unless pin_engines is true.

Minimum string length: 1
secondary_engine
string | null

A model key, or null to inherit the default secondary engine. Left out, it keeps its value. A key equal to the model the engine inherits keeps following the default, unless pin_engines is true.

Minimum string length: 1
pin_engines
boolean

true makes a key equal to the model an engine inherits a model of its own. Left out, an engine that inherits and receives exactly that key keeps following the default, so an agent read and sent back stays as it was.

specialty_id
string
credential_config
object[]
accessible_credential_ids
string[]
disabled_rule_ids
string[]

Response

The updated agent

id
string
required
Example:

"agt_a9bf5a2b-..."

name
string
required
Example:

"linux-ops - web-01"

status
enum<string>
required
Available options:
idle,
running,
error,
archived
org_id
string
required
Example:

"org_460b541c-..."

tenant_id
string
required
Example:

"ten_115bea44-..."

host_id
string | null
required
Example:

"hst_8272f9b4-..."

specialty_id
string
required
Example:

"spc_9e274f8c-..."

specialty
object
required

null only on an archived agent whose specialty was deleted

main_engine
string
required

The model key the main engine uses: its own, else the inherited default

Example:

"qwen3-coder-480b"

main_engine_source
enum<string>
required

agent: the engine has a model of its own. organization or tenant: the engine inherits the default model of that level.

Available options:
agent,
organization,
tenant
secondary_engine
string
required

The model key the secondary engine uses: its own, else the inherited default

Example:

"qwen3-coder-30b"

secondary_engine_source
enum<string>
required

agent: the engine has a model of its own. organization or tenant: the engine inherits the default model of that level.

Available options:
agent,
organization,
tenant
credential_config
object[] | null
required
disabled_rule_ids
string[]
required
accessible_credential_ids
string[]
required
created_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"

updated_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"

plugin_count
integer

How many plugins are assigned to the agent, present on the agents list and search and on a host's agents

Required range: x >= 0
plugins
object[]

The plugins assigned to the agent, sorted by name, present on the agents list and search and on a host's agents