chatformdocs
API referenceV1

Turn an endpoint on or off. Turning it on clears its failure count

PATCH
/v1/webhooks/{id}

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/webhooks/string" \  -H "Content-Type: application/json" \  -d '{    "active": true  }'
{  "id": "string",  "url": "string",  "events": [    "string"  ],  "formId": "string",  "active": true,  "consecutiveFailures": 0,  "createdAt": 0,  "secretPreview": "string"}