API reference
Rename a memory id
const url = 'https://api.helping.io/v1/memory/rename';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"memory_id":"user-8f2a","new_memory_id":"user-91c4"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.helping.io/v1/memory/rename \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "memory_id": "user-8f2a", "new_memory_id": "user-91c4" }'Moves everything held under the id to a new one for this API key, and the new id replaces the old on stored responses. Later requests that send the old id on those conversations are refused. The new id must hold no memory.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The memory id to rename, and the id it moves to.
Rename a memory id.
object
The memory id, as sent in helpingio:memory_id. It travels in the
body and never in the path, because it can be an email.
The id the memory moves to. It must hold no memory.
Example
{ "memory_id": "user-8f2a", "new_memory_id": "user-91c4"}Responses
Section titled “Responses”{object: "memory.renamed", renamed: true, "helpingio:memory_id": "..."}, with the new id.
The answer to a rename. It echoes the new id, and never the old one.
object
The id the memory now answers to.
Always memory.renamed.
Always true.
Examplegenerated
{ "helpingio:memory_id": "example", "object": "example", "renamed": true}The body is malformed, an id is empty or too long, or the two ids are the same (the error envelope)
Missing or invalid API key (the error envelope)
The key is not entitled to what the request asked for (the error envelope)
memory_id holds no memory (the error envelope)
new_memory_id already holds memory, which a forget does not clear until its retention ends (the error envelope)
This organization has exhausted its delete allowance; retry after the Retry-After header.
The request could not be completed; quote the x-request-id response header when reporting it.
The request could not be served this instant; retry after the Retry-After header.