DELETE /v1/alerts/destinations/{name}
Removes the destination; alerts that name it are recorded as not sent.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token)

Path Parameters

name string required path
The destination's name, as observe.notify names it.
Min length 1Max length 63Pattern ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Example: "ops-slack"

Responses

200 Deleted.
application/json
id string REQUIRED
object string REQUIRED
deleted boolean REQUIRED
Values true
400 The request failed validation (invalid_request, invalid_url).
401 Missing, malformed, expired or revoked credentials (unauthorized).
403 Authenticated but not allowed (forbidden, egress_denied).
404 No such alert destination in this project (alert_destination_not_found).
429 A rate, concurrency or quota limit applies (rate_limited, concurrency_limited, quota_exceeded).
500 Something failed inside B3OS (internal). Retry with backoff.
503 The node or the product is not available right now (node_unavailable, product_unavailable, capacity_unavailable).
curl -X DELETE 'https://beta-api.b3os.org/v1/alerts/destinations/ops-slack' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/alerts/destinations/ops-slack', {  method: 'DELETE',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.delete('https://beta-api.b3os.org/v1/alerts/destinations/ops-slack', headers=headers)print(response.json())
200 Response
{  "id": "ops-hook",  "object": "alert_destination",  "deleted": true}
Ask a question... ⌘I