curl --request PUT \
--url https://api.sendx.io/api/v1/rest/webhook/{webhookId} \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '{
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": false,
"opened": false
}'
{
"id": "webhook_123",
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"created": 1669990400
}
Update an existing webhook
curl --request PUT \
--url https://api.sendx.io/api/v1/rest/webhook/{webhookId} \
--header 'Content-Type: application/json' \
--header 'X-Team-ApiKey: <api-key>' \
--data '{
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": false,
"dropped": false,
"bounced": false,
"markedSpam": false,
"clicked": false,
"opened": false
}'
{
"id": "webhook_123",
"enabled": true,
"url": "https://example.com/webhook",
"unsubscribed": true,
"dropped": true,
"bounced": true,
"markedSpam": true,
"clicked": true,
"opened": true,
"created": 1669990400
}
The ID of the team webhook.
The updated webhook details.
The body is of type object
.
The updated team webhook.
The response is of type object
.
Was this page helpful?