MemorySync
API Reference

Resolve Decision

Record which side of a detected contradiction wins, so retrieval stops presenting both as equally valid.

Endpoint and request fields

POST/memory/decision/resolve
200 OK
FieldTypeContract
decision_idstringIdentifier from the decision panel.
winning_memory_idintegerThe memory that should prevail.
resolutionstringOptional label for how it was resolved.
notestringOptional free-text rationale.

Resolve a contradiction

import os
from memorysync import MemorySyncClient
client = MemorySyncClient(
api_key=os.environ["MEMORYSYNC_API_KEY"],
base_url="https://api.memorysync.io",
project_id=os.environ["MEMORYSYNC_PROJECT_ID"],
end_user_id="usr_7f3a9c2e",
)
result = client.resolve_decision(decision_id="dec_8f21", winning_memory_id=142, note="Confirmed with the customer")

Result handling

Returns the resolved decision. The losing memory is not deleted; the resolution records which one to prefer.

Errors and next action

An unknown decision_id or a winning_memory_id outside the pair is a 4xx. Re-read the decision panel before retrying.

Safety notes