unmergeEntity
Reverse a merge inside its grace period — addressed by the merged id, not the survivor's.
unmergeEntity(mergedEntityId: string): Promise<UnmergeEntityResult>unmergeEntity(request: EntityUnmergeRequest): Promise<EntityUnmergeResponse>Parameters
ParameterTypeRequired
mergedEntityIdstringrequiredThe merged entity's id — not the survivor's. On the wire the field is mergedEntity.
Returns
FieldTypePresence
restoredEntityIdstringalwaysThe 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?