Updates an existing agent’s identity fields. Only the fields you include in the request body are modified; omitted fields remain unchanged.This endpoint updates identity fields only (name, description, metadata). To change the agent’s model, capabilities, policies, or other configuration, create a new version with the Create Agent Version endpoint.
Permission required:agent:modify
Path Parameters
string
required
Agent identifier
Request Body
string
Updated agent name
string
Updated agent description
object
Updated key-value pairs. Replaces the existing metadata entirely.
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/agents/agt_r8k2m1n3' \ -H 'Authorization: Bearer sk_xxxxxx' \ -H 'Content-Type: application/json' \ -d '{ "name": "Support Assistant (Production)", "description": "Production support agent with knowledge base integration" }'
Response
object
Show Agent object
string
Unique agent identifier
string
Updated agent name
string
Updated agent description
object
Arbitrary key-value pairs for storing additional agent information
integer
Current active version number
string
Model used by the agent
object
Capabilities the agent has, keyed by capability name. The platform fills in default values for fields you didn’t set, so a configuration can include fields these docs don’t describe.
object
Execution policies that constrain agent behavior
Show Policies object
integer
Maximum number of conversation turns per run
integer
Maximum number of tool calls per turn
array
Allowlist of tool names the agent may invoke
array
Denylist of tool names the agent must not invoke
integer
Maximum seconds a subagent may run before being cancelled
integer
Maximum number of subagents that may run concurrently
object
Output configuration for the agent
Show Output object
string
Output mode
object
JSON Schema for structured output
array
Subagent definitions attached to this agent
Show Subagent object
string
Subagent name
string
Execution mode for the subagent
string
Context instructions passed to the subagent
boolean
Whether the subagent inherits the parent agent’s tools
array
Skills attached to this agent
Show Skill reference
string
Skill identifier
integer
Skill version number
string
Custom identifier for external system integration
string
Actor identifier associated with this agent
integer
Latest version number available for this agent
string
System prompt used to instruct the agent
object
Model-specific settings such as temperature and max tokens
object
Runtime binding configuration for tools and data sources