You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
Implementation note
The functionality is only available for WhatsApp Business.
This method is available in both synchronous and asynchronous implementations.
Request
Parameter
Description
The data type of the parameter
Required parameter
LabelId
Unique ID of the label.
String
HexColor
Label Color.
String
Only HexColor is specified
Only LabelName is specified
LabelName
Name of the label.
String
Only LabelName is specified
Only HexColor is specified
Response
Parameter
Description
The data type of the parameter
Result
The result of the creation.
String
LabelInfo
Data for the created label.
Label
Parameters of the Label
Parameter
Description
The data type of the parameter
LabelId
Unique ID of the label.
String
HexColor
Label Color.
String
LabelName
Name of the label.
String
Example
usingSystem;usingChatApi.Core.Connect;usingChatApi.Core.Connect.Interfaces;usingChatApi.WA.Dialogs;usingChatApi.WA.Dialogs.Operations.Interfaces;usingChatApi.WA.Dialogs.Requests.UI;usingChatApi.WA.Dialogs.Requests.UI.Interfaces;usingChatApiClient.Properties;namespaceChatApiClient{internalclassProgram{internalstaticIWhatsAppConnectConnect{get;set;}internalstaticvoidMain(){// put your chat-api's dataConnect=newWhatsAppConnect(WhatsApp_Server,WhatsApp_Instance,WhatsApp_Token);IDialogOperationsdialogOperations=newDialogOperations(Connect);IUserInterfaceOperationsuserInterfaceOperations=dialogOperations.UserInterfaceOperations.Value;IWhatsAppBusinessOperationswhatsAppBusinessOperations=userInterfaceOperations.WhatsAppBusinessOperations.Value;ILabelUpdateRequestrequest=newLabelUpdateRequest{LabelId="labelId",LabelName="VIP Client"};varchatApiResponse=whatsAppBusinessOperations.UpdateLabel(request);if(!chatApiResponse.IsSuccess)Console.WriteLine(chatApiResponse.Exception);varresponse=chatApiResponse.GetResult();Console.WriteLine(response?.PrintMembers());}}}