REST API v4: DELETE mobile push subscription

This method deletes a mobile push subscription.

After the subscription has been deleted, the associated device will no longer receive mobile push notifications through Copernica.

To delete a mobile push subscription, send an HTTP DELETE request to the following URL:

https://api.copernica.com/v4/push/mobilesubscription/$id

Replace $id with the ID of the mobile push subscription.

PHP example

The following script demonstrates how to use this API method.

// required scripts
require_once("CopernicaRestAPI.php");

// change this to your access token
$api = new CopernicaRestAPI("your-access-token", 4);

// replace {$id} with the ID of the mobile push subscription
$api->delete("push/mobilesubscription/{$id}");

This example requires the REST API class.