Brain Docs

Reference

Rust SDKInstallationHTTP clientWire client
create_entityget_entityresolve_entitylist_entitiesupdate_entityrename_entitymerge_entitiesunmerge_entitytombstone_entity
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Rust SDKEntitiesunmerge_entity

unmerge_entity

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
async fn unmerge_entity(&self, merged_entity_id: &str) -> Result<UnmergeEntityResult, BrainHttpError>
Handshake credentialstable
async fn unmerge_entity(&self, request: &EntityUnmergeRequest) -> Result<EntityUnmergeResponse>

Parameters

ParameterTypeRequired
merged_entity_idstringrequired

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

Returns

FieldTypePresence
restored_entity_idstringalways

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
merge_entities

Was this page helpful?

merge_entities

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

tombstone_entity

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

On this page

ParametersReturnsOn the wire
Suggest an editOpen in Playground