curl --request POST \
--url https://api.cleartalk.ai/memory/{id}/user/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+1234567890",
"metadata": "25 year old customer from New York, interested in AI solutions",
"summary": "The user had previously discussed their startup and had a follow-up conversation about AI.",
"external_memory_key": "external_key_123"
}
'curl --request POST \
--url https://api.cleartalk.ai/memory/{id}/user/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+1234567890",
"metadata": "25 year old customer from New York, interested in AI solutions",
"summary": "The user had previously discussed their startup and had a follow-up conversation about AI.",
"external_memory_key": "external_key_123"
}
'API Key for authentication
The phone number of the user to update within the memory.
"+1234567890"
Updated metadata to associate with this user. Can include any key-value pairs relevant to your use case.
"25 year old customer from New York, interested in AI solutions"
Updated summary text for this user's interactions.
"The user had previously discussed their startup and had a follow-up conversation about AI."
Optional external key for additional memory validation or cross-referencing.
"external_key_123"
User memory data updated successfully