CallFire Solutions

Control Contact Batch

Follow

CONTROL CONTACT BATCH

Enables or Disables a Broadcast's ContactBatch

This operation provides the ability to enable or disable the list of contacts associated with a ContactBatch on a Broadcast.

REQUEST PARAMETERS

ParameterDemo ValueDescriptionData Type
ControlContactBatch     object
Id Unique ID of resource long
Name   string
Enabled   boolean

EXAMPLE


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string ControlContactBatch()
        {
            long contactBatchId = 3; //Your Contact Batch 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("broadcast/batch/{0}/control", contactBatchId), Method.PUT);
            request.AddParameter("Name", "ContactBatchName");
            request.AddParameter("Enabled", "true");

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

The response code returned is:

204

Which means that the ContactBatch's Status has been edited successfully.

Have more questions? Submit a request

Comments