Record a fact
record_factUse when you learn something about a customer, ticket, order or other business record and want it kept, including when a value has changed in the real world, such as a customer moving to a new address. Recording a new value for the same entity and predicate makes it the current value; the old one stays in history as what was true before. If the recorded value was never right, use correct_fact instead. The fact is kept with its evidence and attributed to you, and it can be corrected or undone later. 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 value. Any JSON: string, number, boolean, object or array. | |
| 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 | Yes | What the fact is about, such as status, email, owner or amount_due. | |
| workspace | No | Optional. The workspace to act on, as list_workspaces names it. Leave it out to use this connection's first workspace. | |
| confidence | No | Optional confidence from 0 to 1. Leave unset when you are sure. | |
| observed_at | No | When the fact was observed at the source, RFC 3339. Defaults to unset. | |
| 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. |