UmweltDocs
Reference/Commands/evidence.register
evidence.registercommandsince 0.1

Registers a source, such as a document or a recording, that events and Holdings can cite.

Request
umwelt call story.umw evidence.register '{
  "projectId": "ball",
  "id": "guest-list",
  "title": "The guest list",
  "type": "document",
  "createdAt": "2026-11-07T20:00:00Z",
  "description": "Everyone announced at the door."
}'
Request
const result = await client.evidenceRegister({
  projectId: 'ball',
  id: 'guest-list',
  title: 'The guest list',
  type: 'document',
  createdAt: '2026-11-07T20:00:00Z',
  description: 'Everyone announced at the door.',
});
Request
var result = engine.EvidenceRegister(new EvidenceSource
{
    ProjectId = "ball",
    Id = "guest-list",
    Title = "The guest list",
    Type = "document",
    CreatedAt = "2026-11-07T20:00:00Z",
    Description = "Everyone announced at the door.",
});
Response
{
  "id": "guest-list",
  "projectId": "ball",
  "title": "The guest list",
  "createdAt": "2026-11-07T20:00:00Z",
  "description": "Everyone announced at the door.",
  "type": "document"
}

Payload

FieldTypeDescription
projectIdrequiredstringThe project to write to.
idrequiredstringIts id.
titlerequiredstringIts title.
typerequiredstringWhat it is: a document, a recording, a letter.
createdAtrequiredstringWhen the source was made.
descriptionstringWhat it holds.
contentHashstringA hash of its content.
locatorstringWhere to find it.
metadataobjectAnything else, as JSON.

Result

FieldTypeDescription
idalwaysstringThe source’s id, cited by events and by evidence acquisitions.
projectIdalwaysstringThe project it belongs to.
titlealwaysstringIts title.
typealwaysstringWhat it is: a document, a recording, a letter.
createdAtalwaysstringWhen the source was made, as you give it.
descriptionstringWhat it holds.
locatorstringWhere to find it: a path, a URL, a shelf mark.
contentHashstringA hash of its content, to notice when it changes.
metadataobjectAnything else, as JSON.

Rules

Evidence grants nothing by itself. A Holding acquired from it says so with { "kind": "evidence", "evidenceId": … }; the source alone makes nobody know anything.

Errors

VALIDATION_FAILEDThe payload is malformed.
CONFLICTA source with that id exists.
NOT_FOUNDThe project does not exist.
HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.

Every code is listed in Errors.

See also

Was this page helpful?