ac-co.ai docs
API Referencewebhooks

Update a webhook subscription

POST
/webhooks/subscriptions/update
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/webhooks/subscriptions/update" \  -H "Content-Type: application/json" \  -d '{    "body": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "http://example.com",  "events": [    "lead.created"  ],  "enabled": true,  "secretPrefix": "string",  "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",  "createdAt": "string",  "updatedAt": "string"}