Update an AI memory
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id} \
--header 'Content-Type: application/json' \
--data '
{
"revision": 2,
"title": "<string>",
"content": "<string>",
"tags": [
"<string>"
],
"project_id": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
revision: 2,
title: '<string>',
content: '<string>',
tags: ['<string>'],
project_id: '<string>'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id}"
payload = {
"revision": 2,
"title": "<string>",
"content": "<string>",
"tags": ["<string>"],
"project_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Update an AI memory
Author only (403 otherwise), at the current revision (409 when stale). Changes title, content, tags, the linked project (null to unlink), or visibility (team shares it; private un-shares it).
PATCH
/
admin
/
api
/
data-workspace
/
memories
/
{memory_id}
Update an AI memory
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id} \
--header 'Content-Type: application/json' \
--data '
{
"revision": 2,
"title": "<string>",
"content": "<string>",
"tags": [
"<string>"
],
"project_id": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
revision: 2,
title: '<string>',
content: '<string>',
tags: ['<string>'],
project_id: '<string>'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/memories/{memory_id}"
payload = {
"revision": 2,
"title": "<string>",
"content": "<string>",
"tags": ["<string>"],
"project_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Body
application/json
Response
Successful operation
The response is of type object.