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

Parameter Data Type Demo Value Description
DeleteSubscription object Delete Subscription identified by unique ID
Id long 135 Unique ID of resource

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.