rename_entity
Change an entity's canonical name, optionally keeping the old one as an alias.
async fn rename_entity(&self, entity_id: &str, input: &RenameEntityInput) -> Result<EntityDetail, BrainHttpError>async fn rename_entity(&self, request: &EntityRenameRequest) -> Result<EntityViewResponse>Parameters
ParameterTypeRequired
entity_idstringrequiredThe entity to rename.
new_canonical_namestringrequiredThe new name.
move_to_aliasbooleanoptionalKeep 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?