CallFire Solutions

Unlabel Number

Follow

UNLABEL NUMBER

Removes a label from a single number

This operation removes a label from a number. It doesn't remove the label from the system, it just removes the association between the number and the label.

REQUEST PARAMETERS

ParameterDemo ValueDescriptionData Type
UnlabelNumber     object
Number List of E.164 11 digit numbers space seperated and optional fieldName PhoneNumber
LabelName Label name string

EXAMPLE


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string UnabelNumber()
        {
            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.DELETE);
            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 removed from a number successfully.

Have more questions? Submit a request

Comments