Skip to main content
DELETE
/
api
/
social
/
v4
/
alerts
/
{alertId}
/
subscriptions
JavaScript
async function unsubscribeFromAlert(alertId, userId) {  const url = `/api/social/v4/alerts/${alertId}/subscriptions?subscriberId=${userId}&type=USER`;  const response = await fetch(url, {    method: 'DELETE',  });  return await response.json();}
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

alertId
integer
required

The alertId

Query Parameters

subscriberId
integer
required

The id of the entity unsubscribing from the alert

type
string
required

The entity type, can be USER, GROUP, BUZZ, DAILY, WEEKLY, or AUTO

Response

200 - application/json

Returns the parameter of success or error based on the alert id being valid.

The response is of type object.