Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createRelationgetRelationlistRelationstraverseRelationssupersedeRelationtombstoneRelation
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKRelationstombstoneRelation

tombstoneRelation

Retire a relation with no replacement. There is no retract equivalent — and here is why.

PURPOSE

Retire a relation with no replacement. The record stays.

DELETE/v1/relations/:idBearer API keystable
tombstoneRelation(relationId: string, query?: TombstoneRelationQuery): Promise<TombstoneResult>
Handshake credentialstable
tombstoneRelation(request: RelationTombstoneRequest): Promise<RelationTombstoneResponse>

Parameters

ParameterTypeRequired
relationIdstringrequired

The relation to retire.

reasonstringoptional

Recorded with the tombstone.

Returns

FieldTypePresence
tombstonedAtUnixNanos64-bit integeralways

When it was retired.

There is no retractRelation

Statements have a retract verb because they can carry free text that an erasure request must destroy. A relation is two entity ids, a type and an interval — there is nothing to zero, so tombstoning is the whole lifecycle.

On the wire

Entity ids are UUID bytes, properties is a propertiesBlob, and evidence is a single reference rather than an array. Every request carries a requestId plus an optional actAs.

See also
supersedeRelationtombstoneEntity

Was this page helpful?

supersedeRelation

Replace a relation with a new version, keeping the chain readable.

getSchema

Read the active schema document, or a specific version of it.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground