Remove a push subscription
DELETE
/api/v1/notifications/subscriptions/{installation_id}
const url = 'https://example.com/api/v1/notifications/subscriptions/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/v1/notifications/subscriptions/example \ --header 'Authorization: Bearer <token>'Remove the push subscription for this Installation. The server returns no response body, even when the subscription is already absent. Route: /api/v1/notifications/subscriptions/{installation_id}. Inputs: installation_id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”installation_id
required
string
Responses
Section titled “Responses”Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}