curl --request POST \
--url https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"correctedContent": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
correctedContent: '<string>'
})
};
fetch('https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"correctedContent": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"memory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"memoryType": "document",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceTitle": "<string>",
"sourceUrl": "<string>"
},
"updatedChunkCount": 123
}Correct a context vault memory
Applies a correction to an extracted workspace memory. When
correctedChunkContent is provided, the cited source chunk is updated
too so future document retrieval stays aligned with the corrected
memory.
curl --request POST \
--url https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"correctedContent": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
correctedContent: '<string>'
})
};
fetch('https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/memories/{memoryId}/correction"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"correctedContent": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"memory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"memoryType": "document",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceTitle": "<string>",
"sourceUrl": "<string>"
},
"updatedChunkCount": 123
}Authorizations
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Path Parameters
Body
Corrected extracted memory text.
10000Optional vault inside the workspace. Defaults to the workspace's default vault.
wrong, outdated, incomplete Reviewer note explaining why the correction is needed.
1000Optional corrected source chunk text. Send this to keep document-chunk retrieval aligned with the corrected memory.
20000Optional evidence chunk to update. Omit to update all cited chunks when correctedChunkContent is supplied.
Response
Memory corrected.
Hide child attributes
Hide child attributes
document memories are extracted from sources; company memories are curated workspace facts.
document, company Number of source chunks updated by the correction.
