PATCH/webhooks/:id

Update Webhook

Update an existing webhook endpoint's URL, events, or status

Scope: WEBHOOKS_WRITE

Overview

Updates an existing webhook endpoint. All fields are optional — only the provided fields are changed. Use isActive to enable or disable an endpoint without deleting it.

Request

PATCH/webhooks/:id

Path Parameters

Headers

HeaderValue
AuthorizationBearer fxk_live_<your-api-key>
Content-Typeapplication/json

Request Body

Example Request

curl -X PATCH "https://api.formfex.com/api/v1/public/webhooks/WEBHOOK_ID" \
  -H "Authorization: Bearer $FORMFEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["FORM_RESPONSE_CREATED"],
    "isActive": true
  }'

Response

Response Fields

FieldTypeDescription
data.idstringUnique webhook endpoint identifier (UUID)
data.urlstringHTTPS URL that receives webhook events
data.eventsstring[]Array of subscribed event types
data.secretLast4stringLast 4 characters of the signing secret
data.isActivebooleanWhether the endpoint is currently active
data.descriptionstring | nullOptional description
data.createdAtstringISO 8601 creation timestamp
data.updatedAtstringISO 8601 last update timestamp

Error Cases

StatusCause
404Webhook endpoint not found or not owned by this account
409Another webhook endpoint with the new URL already exists

Notes

Re-enabling disabled endpoints

If an endpoint was automatically disabled after 5 consecutive delivery failures, set isActive to true to re-enable it. Make sure the underlying issue is resolved first.