Skip to content

Subscribes to push notifications with the specified handler

DELETE
/api/pushnotification/{type}/subscription/{subscriptionId}

Authorizations

Parameters

Path Parameters

type*

the handler type

Typestring
Required
subscriptionId*

unique identifier of the subscription

Typestring
Required

Responses

Successful

Samples

cURL
curl -X DELETE http://localhost/api/pushnotification/{type}/subscription/{subscriptionId}
JavaScript
fetch("http://localhost/api/pushnotification/{type}/subscription/{subscriptionId}", { method: "DELETE" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/pushnotification/{type}/subscription/{subscriptionId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("http://localhost/api/pushnotification/{type}/subscription/{subscriptionId}")
print(response.json())