unmerge_entity
Reverse a merge inside its grace period — addressed by the merged id, not the survivor's.
async fn unmerge_entity(&self, merged_entity_id: &str) -> Result<UnmergeEntityResult, BrainHttpError>async fn unmerge_entity(&self, request: &EntityUnmergeRequest) -> Result<EntityUnmergeResponse>Parameters
ParameterTypeRequired
merged_entity_idstringrequiredThe merged entity's id — not the survivor's. On the wire the field is mergedEntity.
Returns
FieldTypePresence
restored_entity_idstringalwaysThe 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
Was this page helpful?