Update Agent
Update Agent through the OMA API.
?beta=true.Authorizations
OMA workspace API key.
Headers
The OMA API compatibility version to use.
Beta header that enables the Managed Agents API contract.
Path Parameters
Path parameter agent_id
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Body
Request parameters for updating an agent. Omit a field to preserve its current value.
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.
1
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
256Description. Omit to preserve; send empty string or null to clear.
2048Model 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 prompt. Omit to preserve; send empty string or null to clear.
100000"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."
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.
- Option 1
- Option 2
- Option 3
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. Full replacement. Omit to preserve; send empty array or null to clear.
Skill to load in the session container.
- Option 1
- Option 2
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 orchestration configuration. Full replacement. Omit to preserve; send null to clear.
Response
Successful response (OK)
A Managed Agents agent.
"agent_011CZkYpogX7uDKUyvBTophP"
When the agent was archived. Null if not archived.
null
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
"A general-purpose starter agent."
Model identifier and configuration.
Multiagent orchestration configuration. Null when the agent is single-threaded.
"My First Agent"
Resolved skill as returned in API responses.
- Option 1
- Option 2
"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."
Union type for tool configurations returned in API responses.
- Option 1
- Option 2
- Option 3
agent "agent"
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
The agent's current version. Starts at 1 and increments when the agent is modified.
1