recordquerysince 0.1
One record by its id: a Fact, a Holding, an Awareness or a Disposition.
Request
umwelt call story.umw record '{
"projectId": "ball",
"recordId": "theft"
}'Request
const result = await client.record({ projectId: 'ball', recordId: 'theft' });Request
var result = engine.Record(new RecordId { ProjectId = "ball", RecordIdValue = "theft" });Response
{
"kind": "fact",
"id": "theft",
"projectId": "ball",
"timelineId": "main",
"eventId": "scene-1",
"claim": {
"subject": "bob",
"predicate": "stole",
"object": { "kind": "entity", "id": "necklace" },
"polarity": true,
"qualifiers": {}
},
"position": { "tick": 1 },
"provenance": { "origin": { "kind": "human" } },
"recordedAt": 2
}Payload
| Field | Type | Description |
|---|---|---|
projectIdrequired | string | The project to read. |
recordIdrequired | string | The record. |
timelineId | stringdefault "main" | The timeline to read. |
Result
| Field | Type | Description |
|---|---|---|
kindalways | "fact" | "holding" | "awareness" | "disposition" | What it is. The other fields follow from it. |
idalways | string | The record’s id. |
eventIdalways | string | The event it was written in. |
positionalways | Position | Where it stands in the story. |
recordedAtalways | integer | The version that wrote it. |
claim | Claim | What a Fact or a Holding says. |
holder | string | Whose Holding, Awareness or Disposition it is. |
attitude, confidence, accessibility, acquisition | … | How a Holding is held, and how it was acquired. |
target, dimension, value | … | What an Awareness or a Disposition is about, and a Disposition’s value. |
provenancealways | Provenance | Who or what wrote it. |
Rules
No position. The record is returned as written, whatever its status. trace adds its transitions and its chain.
Records are never edited. A record keeps what it was written with. Its status changes only through transitions.
Errors
VALIDATION_FAILEDThe payload is malformed.NOT_FOUNDThe project, record or timeline does not exist, or the draft read was purged.INVALID_STATEThe timeline read is a draft that was promoted. details.promotedInto names the timeline to read instead.HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.Every code is listed in Errors.
See also
Was this page helpful?