Adds a label to a broadcast, creating the label if it doesn't already exist

This operation labels a broadcast (Voice, Text, or IVR) by specifying broadcastId and label name. If the label name doesn't currently exist on system it will be created and saved.


Parameter Data Type Demo Value Description
LabelBroadcast object
Id long 135 Unique ID of resource
LabelName string MyLabel Label name


using RestSharp;

namespace [your-namespace]
    public class [your-class]
        public string LabelBroadcast()
            long broadcastId = 1903340001; // Your Broadcast Id here

            var client = new RestClient("");
            client.Authenticator = new HttpBasicAuthenticator("YourLoginId", "password");

            var request = new RestRequest(string.Format("label/broadcast/{0}", BroadcastId), Method.POST);
            request.AddParameter("LabelName", "MyBroadcastLabel");

            var response = client.Execute(request);
            string content = response.Content;
            return content;

The response code returned is:


Which means that the Label has been created successfully.