Create Webhook
POST/api/v2/business/:businessId/webhook
Create Webhook
Request
Path Parameters
businessId stringrequired
Created business id.
- application/json
Body
required
url Urlrequired
Instance unique url.
enabled Enabled
Default value: false
Enable or disable the url.
Responses
- 201
- 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.630Z",
"updatedAt": "2024-04-14T14:11:05.630Z",
"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...