Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
POST

Disable a webhook

Scope: developers:webhooks.write https://api.alladdin.com/api/v2/webhooks/{webhookId}/disable

Disables a webhook subscription, recording who disabled it and why.

Parameters

Path parameters

webhookId string required

Webhook ID

Request body

object reason string required

Reason for disabling the webhook

Request

python
import requests

url = "https://api.alladdin.com/api/v2/webhooks/507f1f77bcf86cd799439011/disable"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "reason": "Endpoint returning 5xx errors"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204 Webhook disabled

Error responses

400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Webhook not found application/json 429 Rate limit exceeded application/json

← PreviousCreate a webhook →

Next →Enable a webhook →