Update Webhook
PUT/api/v2/business/:businessId/webhook
Update Webhook
Request
Path Parameters
businessId stringrequired
Business id.
- application/json
Body
required
url Urlrequired
Instance unique url.
enabled Enabled
Default value: false
Enable or disable the url.
Responses
- 200
- 400
- 401
BusinessWebhookCreateResponse
- application/json
- Schema
- Example (from schema)
Schema
webhookId stringrequired
url stringrequired
enabled booleanrequired
createdAt date-timerequired
updatedAt date-timerequired
businessBusinessId stringrequired
{
"webhookId": "string",
"url": "string",
"enabled": true,
"createdAt": "2024-04-14T14:11:05.632Z",
"updatedAt": "2024-04-14T14:11:05.632Z",
"businessBusinessId": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...