Approve a proposed memory
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve \
--header 'Content-Type: application/json' \
--data '{
"revision": 2
}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve"
payload = { "revision": 2 }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Projects
Approve a proposed memory
Approve a proposal from automatic capture (#682): it becomes an ordinary memory, recalled by agents and shared as its visibility says. Only its author approves, and only as a person: an agent or API key gets 403, so the agent that proposed a memory never accepts it. Optionally set visibility as it is approved, and send the revision you read so a proposal changed since is not approved unread. To reject a proposal, delete it.
POST
/
admin
/
api
/
projects
/
{project_id}
/
memories
/
{memory_id}
/
approve
Approve a proposed memory
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve \
--header 'Content-Type: application/json' \
--data '{
"revision": 2
}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/memories/{memory_id}/approve"
payload = { "revision": 2 }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
application/json
Response
Successful operation
The response is of type object.