Skip to content
Get an API key

API reference

Rename a memory id

POST
/v1/memory/rename
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.

The memory id to rename, and the id it moves to.

Media typeapplication/json

Rename a memory id.

object
memory_id
required

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.

string
new_memory_id
required

The id the memory moves to. It must hold no memory.

string
Example
{
"memory_id": "user-8f2a",
"new_memory_id": "user-91c4"
}

{object: "memory.renamed", renamed: true, "helpingio:memory_id": "..."}, with the new id.

Media typeapplication/json

The answer to a rename. It echoes the new id, and never the old one.

object
helpingio:memory_id
required

The id the memory now answers to.

string
object
required

Always memory.renamed.

string
renamed
required

Always true.

boolean
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.