CallFire Solutions

Delete Subscription

Follow

DELETE SUBSCRIPTION

Deletes a subscription by id

This operation deletes a subscription to stop receiving CallFire notification events at the registered URI postback endpoint.

REQUEST PARAMETERS

ParameterDemo ValueDescriptionData Type
DeleteSubscription   Delete Subscription identified by unique ID object
Id Unique ID of resource long

EXAMPLE


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string DeleteSubscription()
        {
            long subscriptionId = 3; // Your Subscription 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("subscription/{0}", subscriptionId), Method.DELETE);

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

The response code returned is:

204

Which means that the subscription has been deleted successfully.

Have more questions? Submit a request

Comments