POST

承認

x-api-key
string
header
必須

パスパラメータ

agent_id
string
必須

ボディ

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.

レスポンス

Success.

A Managed Agents agent.

id
string
必須
archived_at
string | null
必須

When the agent was archived. Null if not archived.

created_at
string
必須

A timestamp in RFC 3339 format

description
string | null
必須
execution_identity
object
必須

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

mcp_servers
object[]
必須
metadata
object
必須
model
object
必須

Model identifier and configuration.

multiagent
object
必須

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

name
string
必須
skills
object[]
必須

A resolved Anthropic-managed skill.

system
string | null
必須
tools
object[]
必須
type
string
必須

Always agent.

Allowed value: "agent"
updated_at
string
必須

A timestamp in RFC 3339 format

version
number
必須

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