Add a new label Use await WPP.labels.getLabelColorPalette() to get the list of available colors
Optional
await WPP.labels.addNewLabel(`Name of label`);//orawait WPP.labels.addNewLabel(`Name of label`, { labelColor: '#dfaef0' }); Copy
await WPP.labels.addNewLabel(`Name of label`);//orawait WPP.labels.addNewLabel(`Name of label`, { labelColor: '#dfaef0' });
//or with color index await WPP.labels.addNewLabel(Name of label, { labelColor: 16 });
Name of label
Copy
Add a new label Use await WPP.labels.getLabelColorPalette() to get the list of available colors