Update Agentic Memory API
Introduced 3.2
This is an experimental feature and is not recommended for use in a production environment. For updates on the progress of the feature or if you want to leave feedback, join the discussion on the OpenSearch forum.
Use this API to update an agentic memory.
Endpoint
PUT /_plugins/_ml/memory_containers/{memory_container_id}/memories/{memory_id}
Request body fields
The following table lists the available request body fields.
Field | Data type | Required/Optional | Description |
---|---|---|---|
text | String | Required | The updated text content. |
Example request
PUT /_plugins/_ml/memory_containers/SdjmmpgBOh0h20Y9kWuN/memories/T9jtmpgBOh0h20Y91WtZ
{
"text": "Updated content with new information about machine learning"
}
Example response
{
"_index": "ml-static-memory-sdjmmpgboh0h20y9kwun-admin",
"_id": "S9jnmpgBOh0h20Y9qWu7",
"_version": 2,
"result": "updated",
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"_seq_no": 2,
"_primary_term": 1
}