supersede_relation
Replace a relation with a new version, keeping the chain readable.
supersede_relation(relation_id: str, **new_relation) -> SupersedeRelationResultsupersede_relation(request: RelationSupersedeRequest) -> RelationSupersedeResponseParameters
ParameterTypeRequired
relation_idstringrequiredThe relation being replaced. The wire field is oldRelationId.
(new relation)CreateRelationInputrequiredA whole new relation, with the same fields create_relation takes. On the wire this is newRelation.
Returns
FieldTypePresence
new_relation_idstringalwaysThe replacement.
versionintegeralwaysThe new version number.
Close the old interval
Superseding does not set the old relation's validToUnixNanos for you. If
the point is that someone used to work somewhere, set that bound on the
version you are replacing before — or as part of — the supersession.
On the wire
Entity ids are UUID bytes, properties is a propertiesBlob, and evidence
is a single reference rather than an array. Every request carries a
requestId plus an optional actAs.
See also
Was this page helpful?