updateEntity
Replace an entity's canonical name, aliases and attributes.
updateEntity(entityId: string, input: UpdateEntityInput): Promise<EntityDetail>updateEntity(request: EntityUpdateRequest): Promise<EntityViewResponse>Parameters
ParameterTypeRequired
entityIdstringrequiredThe entity to update. Positional on the HTTP tier.
canonicalNamestringrequiredThe 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
renameEntity 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?