POST

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string
required

Body

application/json
description
string | null

Description. Omit to preserve; send empty string or null to clear.

execution_identity
object

Execution principal for runs of this agent. Full replacement. Omit to preserve; send null or {"type": "service_account"} to restore the default.

mcp_servers
object[] | null

MCP servers. Full replacement. Omit to preserve; send empty array or null to clear. Names must be unique. Maximum 20. Every server must be referenced by an mcp_toolset in the agent's resulting tools; unreferenced servers are rejected. See the MCP connector guide.

metadata
object | null

Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.

model

Model identifier. Accepts the model string, e.g. claude-opus-5-5, or a model_config object for additional configuration control. Omit to preserve. Cannot be cleared.

multiagent
object

Multiagent orchestration configuration. Full replacement. Omit to preserve; send null to clear.

name
string

Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.

skills
object[] | null

Skills. Full replacement. Omit to preserve; send empty array or null to clear.

Skill to load in the session container.

system
string | null

System prompt. Omit to preserve; send empty string or null to clear.

tools
object[] | null

Tool configurations available to the agent. Full replacement. Omit to preserve; send empty array or null to clear. Maximum of 256 tools across all toolsets allowed.

Configuration for built-in agent tools. Use this to enable or disable groups of tools available to the agent.

version
number

The agent's current version, used to prevent concurrent overwrites. Obtain this value from a create or retrieve response. Must be at least 1 if specified. When supplied, the request fails if it does not match the server's current version; omit to apply the update unconditionally.

Response

Success.

A Managed Agents agent.

id
string
required
archived_at
string | null
required

When the agent was archived. Null if not archived.

created_at
string
required

A timestamp in RFC 3339 format

description
string | null
required
execution_identity
object
required

Execution principal for runs of this agent. Always present; {"type": "service_account"} when runs carry no customer-named principal.

mcp_servers
object[]
required
metadata
object
required
model
object
required

Model identifier and configuration.

multiagent
object
required

Multiagent orchestration configuration. Null when the agent is single-threaded.

name
string
required
skills
object[]
required

A resolved Anthropic-managed skill.

system
string | null
required
tools
object[]
required
type
string
required

Always agent.

Allowed value: "agent"
updated_at
string
required

A timestamp in RFC 3339 format

version
number
required

The agent's current version. Starts at 1 and increments when the agent is modified.