LABEL BROADCAST

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.

REQUEST PARAMETERS

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

EXAMPLE

using RestSharp;

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

            var client = new RestClient("https://www.callfire.com/api/1.1/rest/");
            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:

204

Which means that the Label has been created successfully.