Correct a fact
correct_factUse when a recorded fact was wrong when it was recorded, such as a typo or the wrong customer, and you know the right value. Give the hash of the fact to replace and a reason. If the old value was right then and has since changed, use record_fact instead, so history shows both. The old fact stays in history, marked as superseded, so the correction can itself be undone. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The corrected value. Any JSON: string, number, boolean, object or array. | |
| reason | Yes | Why the earlier fact was wrong. | |
| evidence | No | Where the fact came from, so a person can check it. | |
| entity_id | Yes | Stable ID of the thing the fact is about, such as customer:42 or ticket:T-1009. Not a display name. | |
| predicate | No | Predicate of the corrected fact. Defaults to the predicate of the fact being corrected. | |
| workspace | No | Optional. The workspace to act on, as list_workspaces names it. Leave it out to use this connection's first workspace. | |
| supersedes | Yes | Hash of the fact being corrected, from get_entity or an earlier write. | |
| observed_at | No | When the corrected value was observed, RFC 3339. | |
| operation_id | Yes | Your ID for this one write, 8-200 characters. Reuse it when retrying the same write so it is not recorded twice. Never reuse it for a different write. |