Parameters
webhook
dictionary
url
string
events
array
description
string
Description
url required string URL of the webhook endpoint events required array The list of events to enable for this endpoint description optional string description of the webhook active optional boolean activate or disable the webhook
active
boolean
PATCH/v1/webhooks/{{webhook_id}}
bash
curl https://api.tradly.app/v1/webhooks/{{webhook_id}} \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X PATCH \
-d '{
"webhook": {
"url": "https://yourdomain.com",
"events": [
"user.created",
"user.updated"
],
"description": "notify about user events",
"active": false
}
}'RESPONSE
json
{
"status": true,
"data": {
"webhook": {
"id": 1
}
}
}