JavaScript
async function deleteAlert(alertId) { const url = `/api/social/v4/alerts/${alertId}`; const response = await fetch(url, { method: 'DELETE', }); return await response.json();}
{}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The alertId
Returns the parameter of success or error based on the alert id being valid.
The response is of type object.
object