Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY

Examples

// Successful request
DELETE /api/v2/admin/webhooks/10
200
{
  "ok": "Webhook deleted"
}
// Successful request
DELETE /api/v2/admin/webhooks/11
200
{
  "ok": "Webhook deleted"
}
// Not admin user
DELETE /api/v2/admin/webhooks/:webhook_id
401
// Webhook not found
DELETE /api/v2/admin/webhooks/:webhook_id
404
{
  "error": "Couldn't find Webhook with 'id'=:webhook_id"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters