Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createEntitygetEntityresolveEntitylistEntitiesupdateEntityrenameEntitymergeEntitiesunmergeEntitytombstoneEntity
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKEntitiestombstoneEntity

tombstoneEntity

Retire an entity — it leaves listings but its id keeps resolving.

PURPOSE

Retire an entity. It stops appearing in listings unless tombstoned rows are explicitly requested.

DELETE/v1/entities/:idBearer API keystable
tombstoneEntity(entityId: string, query?: TombstoneEntityQuery): Promise<TombstoneResult>
Handshake credentialstable
tombstoneEntity(request: EntityTombstoneRequest): Promise<EntityTombstoneResponse>

Parameters

ParameterTypeRequired
entityIdstringrequired

The entity to retire.

reasonstringoptional

Recorded with the tombstone.

Returns

FieldTypePresence
tombstonedAtUnixNanos64-bit integeralways

When it was retired.

Tombstoning an entity does not remove the statements and relations that point at it. Retire those separately — see tombstoneStatement and tombstoneRelation.

On the wire

Ids are fixed-width UUID bytes rather than strings, attributes is an opaque attributesBlob, and every request carries a requestId plus an optional actAs. See Wire client.

See also
tombstoneStatementtombstoneRelation

Was this page helpful?

unmergeEntity

Reverse a merge inside its grace period — addressed by the merged id, not the survivor's.

createStatement

Write a typed claim — subject, predicate, object — and learn what it automatically superseded.

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground