Skip to main content
POST
Update Agent
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string

The OMA API compatibility version to use.

anthropic-beta
string

Beta header that enables the Managed Agents API contract.

Path Parameters

agent_id
string
required

Path parameter agent_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Body

application/json

Request parameters for updating an agent. Omit a field to preserve its current value.

version
integer<int32>

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.

Example:

1

name
string

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

Maximum string length: 256
description
string | null

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

Maximum string length: 2048
model

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

system
string | null

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

Maximum string length: 100000
Example:

"You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end."

tools
object[] | null

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

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

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.

skills
object[] | null

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

Skill to load in the session container.

Example:
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.

multiagent
object | null

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

Example:

Response

Successful response (OK)

A Managed Agents agent.

id
string
required
Example:

"agent_011CZkYpogX7uDKUyvBTophP"

archived_at
string<date-time> | null
required

When the agent was archived. Null if not archived.

Example:

null

created_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

description
string | null
required
Example:

"A general-purpose starter agent."

mcp_servers
object[]
required
Example:
metadata
object
required
Example:
model
object
required

Model identifier and configuration.

Example:
multiagent
object | null
required

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

Example:
name
string
required
Example:

"My First Agent"

skills
object[]
required

Resolved skill as returned in API responses.

Example:
Example:
system
string | null
required
Example:

"You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end."

tools
object[]
required

Union type for tool configurations returned in API responses.

Example:
type
enum<string>
required
Available options:
agent
Example:

"agent"

updated_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

version
integer<int32>
required

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

Example:

1