Overview
Updates the content of a memory. After the update, the server recalculates the intelligence/memory_management metadata (such as the decay rate, review plan, and importance score) and returns this information in the response.
API details
Constraints
- You must have an API Key. For more information, see Manage AI API Keys.
Request path
PUT {BASE_URL}/api/v1/memory/spaces/{spaceId}/memories/{memoryId}
Request headers
Name |
Required |
Example Value |
Description |
|---|---|---|---|
| Authorization | Yes | Bearer {token} | Authentication Information |
| Content-Type | No | application/json | Request Body Format |
| X-OB-Project-ID | Yes | Project ID |
Request parameters
Path parameters
Name |
Type |
Whether required |
Example Value |
Description |
|---|---|---|---|---|
| spaceId | string | Yes | space-123 | Memory space ID. |
| memoryId | integer | Yes | 1234567890 | Memory ID (snowflake int64). |
Body parameters
Name |
Type |
Whether required |
Example Value |
Description |
|---|---|---|---|---|
| content | string | Yes | The customer inquired about the pricing of Product A at 3:00 PM yesterday. | Memory content. |
Response parameters
Response parameters
Name |
Type |
Description |
|---|---|---|
| success | boolean | Whether the request was successful |
| code | string | Response Code |
| message | string | Response parameters |
| data | object | Business response data |
Data field description
The returned data after a successful update. The specific structure is unknown.
Request example
curl --request PUT '{BASE_URL}/api/v1/memory/spaces/{spaceId}/memories/{memoryId}' \
--header 'Authorization: Bearer {token}' \
--header 'X-OB-Project-ID: {projectId}' \
--header 'Content-Type: application/json' \
--data '{
"content": "The updated memory content."
}'
Response example
{
"success": true,
"code": "200",
"message": "Update successful",
"data": {}
}
