Ventia
Webhooks
PATCH
/webhooks/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

In: header

Path Parameters

id*string

Unique identifier of the webhook.

Request Body

application/json

active?boolean
name?string
Length1 <= length <= 64
callbackUrl?string
topics?array<>

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.getventia.com/api/v1.0/webhooks/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}
{
  "error": "Invalid webhook body",
  "details": "callbackUrl: It must be a valid URL with the correct format.; callbackUrl: The URL must be secure and start with \"https://\".",
  "success": false
}
{
  "success": false,
  "error": "Unauthorized"
}
{
  "success": false,
  "error": "Internal server error"
}