cURL
curl --request PATCH \ --url https://api.tess.im/memories/{memoryId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "memory": "<string>", "collection_id": 123 } '
Updates an existing memory.
curl --request PATCH \ --url 'https://api.tess.im/memories/{memoryId}' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "memory": "Updated memory content", "collection_id": 1 }'
{ "memory": "Updated memory content", "collection_id": 1 }
{ "message": "Memory updated successfully!", "memory": { "id": 10, "user_id": 1, "memory": "Updated memory content", "credits": 0, "collection_id": 1, "collection": { "id": 1, "user_id": 1, "name": "default" } } }