PUT
/
v2
/
webhooks
/
{webhookId}
Actualizar webhook
curl --request PUT \
  --url https://api.gotrebol.com/v2/webhooks/{webhookId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "url": "https://example.com/webhooks/trebol-v2",
  "events": [
    "verification.v2.created",
    "verification.v2.finished"
  ],
  "active": true
}'
{
  "id": "wh_123",
  "url": "https://example.com/webhooks/trebol",
  "events": [
    "verification.v2.created"
  ],
  "status": "enabled",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

webhookId
string
required

ID único del webhook

Body

application/json

Response

Webhook actualizado exitosamente.

The response is of type object.