Update Agent
/v1/agents/{agent_id}SDK-style partial update. Supplied fields replace the saved values and create a new version; omitted fields keep their values. No row_version is needed. description and note are not accepted here; use Replace (PATCH) for them. Archived Agents return 404.
Path parameters
Agent ID (agt_ prefix).
Headers
Optional. When omitted the service generates one, so a retried request can create a duplicate. Send your own stable key for retries.
Request body
Any subset of these fields. Other fields return 400.
Model ID from the Models API, up to 200 characters.
Display name, up to 128 characters.
System instructions, up to 256 KiB.
Execution runtime: codex (default), claude, or mcode.
Skill references: {"skill_id": "skl_…", "version": null | "<version>"}. Up to 32. On a new binding, null pins the current default when the Agent is saved. For an existing binding, null preserves its pinned version; supply an explicit version to upgrade.
MCP references: {connection_id, server_label, allowed_tools, required}. Up to 32; server_label must be unique in the Agent.
Up to 64 function tools plus at most one web_search tool. Sessions currently require web_search mode disabled, and client-side function results are not supported yet.
format.type text or json_schema (with an object schema); verbosity low, medium, or high.
effort none, minimal, low, medium, high, xhigh, or max; summary concise, detailed, or auto.
auto (default), default, flex, priority, or fast.
Up to 16 string pairs; keys up to 64 and values up to 512 characters.