Skip to main content

Update Webhook

PUT 

https://{api2.codechat.dev}/api/v2/business/:businessId/webhook

Authorization: Business Token

name: Business Tokentype: httpscheme: bearerbearerFormat: jwtdescription: This business token will handle all instances..

Enter the token generated at the time of business creation.

See how to insert the BUSINESS_TOKEN in the request header:

```sh
curl -H 'authorization: Bearer BUSINESS_TOKEN ...'
```in: header

Update Webhook

Request

Path Parameters

    businessId stringrequired

    Business id.

Body

required
    url Urlrequired

    Instance unique url.

    enabled Enabled

    Default value: false

    Enable or disable the url.

Responses

BusinessWebhookCreateResponse

Schema
    webhookId stringrequired
    url stringrequired
    enabled booleanrequired
    createdAt date-timerequired
    updatedAt date-timerequired
    businessBusinessId stringrequired
curl -L -g -X PUT 'https://{api2.codechat.dev}/api/v2/business/:businessId/webhook' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"url": "string",
"enabled": false
}'
Request Collapse all
Base URL
https://{api2.codechat.dev}
Auth
Parameters
— pathrequired
Body required
{
"url": "string",
"enabled": false
}
ResponseClear

Click the Send API Request button above and see the response here!