PUT
/
webhook
/
{webhookId}
Update Team 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
}

Authorizations

X-Team-ApiKey
string
header
required

Path Parameters

webhookId
string
required

The ID of the team webhook.

Body

application/json

The updated webhook details.

The body is of type object.

Response

200
application/json

The updated team webhook.

The response is of type object.