renameEntity
Change an entity's canonical name, optionally keeping the old one as an alias.
renameEntity(entityId: string, input: RenameEntityInput): Promise<EntityDetail>renameEntity(request: EntityRenameRequest): Promise<EntityViewResponse>Parameters
ParameterTypeRequired
entityIdstringrequiredThe entity to rename.
newCanonicalNamestringrequiredThe new name.
moveToAliasbooleanoptionalKeep the old canonical name as an alias. Without it the old name stops resolving — which is usually not what a rename means. Set it unless the old name was wrong rather than outdated.
Returns
FieldTypePresence
—EntityDetailalwaysThe full entity as it now stands.
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?