DELETE LABEL
Removes a label from all labeled objects and deletes it
This operation deletes a label identified by name. All broadcasts and numbers currently containing the label will have the label association removed.
REQUEST PARAMETERS
Parameter | Data Type | Demo Value | Description |
---|---|---|---|
DeleteLabel | object | ||
LabelName | string | MyLabel | Label name |
EXAMPLE
using RestSharp;
namespace [your-namespace]
{
public class [your-class]
{
public string DeleteLabel()
{
var client = new RestClient("https://www.callfire.com/api/1.1/rest/");
client.Authenticator = new HttpBasicAuthenticator("YourLoginId", "password");
var request = new RestRequest("label", Method.DELETE);
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 deleted successfully.