update_entity
Replace an entity's canonical name, aliases and attributes.
update_entity(entity_id: str, canonical_name: str, aliases=None, attributes=None) -> EntityDetailupdate_entity(request: EntityUpdateRequest) -> EntityUpdateResponseParameters
ParameterTypeRequired
entity_idstringrequiredThe entity to update. Positional on the HTTP tier.
canonical_namestringrequiredThe canonical name. Required even when unchanged.
aliasesstring[]optionalReplaces the alias set — passing an empty list clears it.
attributesstring (wire: bytes)optionalReplaces the attribute blob.
Returns
FieldTypePresence
—EntityDetailalwaysThe full entity as it now stands.
Replace, not merge
Omitting aliases is not the same as leaving them alone in every client:
pass the full set you want to end up with. To change only the display name
while keeping the old one resolvable, use
rename_entity instead.
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?