Modify the content of an existing factual memory
Updates the content of a specified memory node. The API automatically detects the node type and formats the content.
Method and endpoint
PATCH https://dashscope.aliyuncs.com/api/v2/apps/memory/memory_nodes/{memory_node_id}
Request parameters
| Parameter | Type | Required | Location | Description |
|---|---|---|---|---|
memory_node_id | string | Yes | Path | Memory node ID |
custom_content | string | Yes | Body | Updated memory content |
memory_library_id | string | No | Body | Memory library ID |
meta_data | object | No | Body | Metadata. The update is incremental, and unspecified keys remain unchanged |
skill_name | string | Conditionally required | Body | If the node is a skill, skill_name, skill_description, and skill_tags are all required |
skill_description | string | Conditionally required | Body | Skill description. Required under the same conditions as skill_name |
skill_tags | array[string] | Conditionally required | Body | Skill tags. Required under the same conditions as skill_name |
Response
| Field | Type | Description |
|---|---|---|
request_id | string | Request ID |