Brain Docs

Reference

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

unmergeEntity

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

PURPOSE

Reverse a merge. Only works inside the grace period the merge reported.

POST/v1/entities/:id/unmergeBearer API keystable
unmergeEntity(mergedEntityId: string): Promise<UnmergeEntityResult>
Handshake credentialstable
unmergeEntity(request: EntityUnmergeRequest): Promise<EntityUnmergeResponse>

Parameters

ParameterTypeRequired
mergedEntityIdstringrequired

The merged entity's id — not the survivor's. On the wire the field is mergedEntity.

Returns

FieldTypePresence
restoredEntityIdstringalways

The entity that was brought back.

Two ways to get this wrong

Passing the survivor's id does not reverse the merge — the verb is addressed by the entity that was folded in. And outside the grace period the call fails: there is no late undo, so record gracePeriodSeconds from the merge and act within it.

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
mergeEntities

Was this page helpful?

mergeEntities

Fold one entity into another, with an audit id and a grace period you must read.

tombstoneEntity

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

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground