KuikCodeDocs
APIReferenceWebhooks

Update a webhook

PATCH
/webhooks/{id}

Change the receiving URL or the connected codes. codeIds replaces the whole set; codes left out are disconnected.

AuthorizationBearer <token>

An API key from Settings, Developers: Authorization: Bearer kc_live_...

In: header

Path Parameters

id*string
Length1 <= length

Request 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"}