Skip to main content
POST
https://api.memcontext.in
/
api
/
company-brain
/
memories
/
{memoryId}
/
correction
Correct a context vault memory
curl --request POST \
  --url https://api.memcontext.in/api/company-brain/memories/{memoryId}/correction \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "correctedContent": "<string>"
}
'
{
  "success": true,
  "memory": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "content": "<string>",
    "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

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Path Parameters

memoryId
string<uuid>
required

Body

application/json
workspaceId
string<uuid>
required
correctedContent
string
required

Corrected extracted memory text.

Maximum string length: 10000
type
enum<string>
default:wrong
Available options:
wrong,
outdated,
incomplete
reason
string

Reviewer note explaining why the correction is needed.

Maximum string length: 1000
correctedChunkContent
string

Optional corrected source chunk text. Send this to keep document-chunk retrieval aligned with the corrected memory.

Maximum string length: 20000
evidenceChunkId
string<uuid>

Optional evidence chunk to update. Omit to update all cited chunks when correctedChunkContent is supplied.

Response

200 - application/json

Memory corrected.

success
boolean
required
memory
object
required
updatedChunkCount
integer
required

Number of source chunks updated by the correction.