update
Update an existing memory in Maindex (Smart) by mem-* ID. Supply content, headline, tags, and/or metadata; at least one field is required. Each successful update creates a new revision (Expert semantics). CONTENT POLICY: NEVER store passwords, API keys, secrets, credit card numbers, SSNs, government IDs, medical/health records (PHI/HIPAA), biometric data, or any legally protected PII.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Fields to change; at least one of content, headline, tags, or metadata is required. | |
| rewrite | No | FAILSAFE — defaults to false. When false (the default), content is stored exactly as provided with zero LLM processing. Set to true ONLY if the caller explicitly opts into LLM-assisted rewriting for improved clarity and structure. No content transformation occurs unless this flag is explicitly true. | |
| target_id | Yes | Memory ID (mem-xxxx or team-slug:mem-xxxx). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory | Yes | The updated memory object, or null on failure | |
| success | Yes | Whether the update succeeded | |
| traceId | Yes | Trace ID for debugging |