Renames a label.
You can only call this method when authenticated as a Wix app or Wix user identity.
function renameLabel(
key: string,
label: RenameLabel,
options: RenameLabelOptions,
): Promise<ContactLabel>;
Label key.
key
is generated when the label is created.
It can't be modified, even if displayName
is updated.
Label to rename.
Language options.
import { labels } from "@wix/crm";
async function renameLabel(key, label, options) {
const response = await labels.renameLabel(key, label, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.