APIReferenceWebhooks
Update a webhook
Change the receiving URL or the connected codes. codeIds replaces the whole set; codes left out are disconnected.
Authorization
apiKey AuthorizationBearer <token>
An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Path Parameters
id*string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/webhooks/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "url": "http://example.com", "secret": "string", "codes": [ { "id": "string", "shortCode": "string", "name": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}