LABEL NUMBER

Adds a label to a single number

This operation labels a (phone) number by specifying a E.164 11 digit number identifier and label name. If the label name doesn't currently exist on the system, the system creates and saves it.

REQUEST PARAMETERS

Parameter Data type Demo Value Description
LabelNumber object
Number PhoneNumber List of E.164 11 digit numbers space seperated and optional fieldName
LabelName string MyLabel Label name

EXAMPLE

using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string LabelNumber()
        {
            string number = "12132042444"; // Your Number 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/number/{0}", number), Method.POST);
            request.AddParameter("LabelName", "MyNumberLabel");

            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.