Update an agent
Update the specified agent. Top-level scalar fields merge field-by-field. Nested objects such as runtime, permissions, tools, subagents, skills, and extras are replaced in full when provided. Providing file-tree fields such as instructions, tools, subagents, skills, or files creates a new file tree commit.
Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
IANA timezone name (for example, America/Los_Angeles) stamped into the agent's runtime configuration when the agent is created or updated. The runtime uses this timezone to inject a localized current-date line into the agent's system prompt, so the agent reasons about dates in the user's local time. Optional. Defaults to UTC when omitted; invalid values fall back to UTC.
"America/Los_Angeles"
Path Parameters
Managed Deep Agent ID.
Query Parameters
Include the raw file map in the agent response. Accepted truthy values are true and 1.
Body
Sparse update payload. Omitted fields are left unchanged.
Updated agent name.
Updated agent description.
Agent visibility and sharing configuration. When omitted on create, defaults to personal identity, tenant visibility, and read tenant access.
Updated agent system prompt. Triggers a new file tree commit.
Updated subagent definitions. Replaces the existing subagents field in full.
Updated inline skills. Replaces the existing skills field in full.
Updated caller-defined metadata. Replaces the existing extras field in full.
Raw file map for paths not covered by typed fields. Keys are relative file paths. Setting a typed field and the corresponding files entry returns 422.
Response
Agent updated.
Agent visibility and sharing configuration. When omitted on create, defaults to personal identity, tenant visibility, and read tenant access.
Revision token for the latest file tree commit.
Agent system prompt parsed from AGENTS.md.
Raw file map for paths not covered by typed fields. Keys are relative file paths. Setting a typed field and the corresponding files entry returns 422.

