Toggle Activate
PATCH/api/v2/business/:businessId/instance/:instanceId/toggle-activate
Toggle Activate
Request
Path Parameters
instanceId stringrequired
ID of the instance.
businessId stringrequired
Business ID.
- application/json
Body
required
action Actionrequired
Default value: activate | deactivate
Activate or deactivate an instance
Responses
- 200
- 400
- 401
- 404
Success Response
- application/json
- Schema
- Example (from schema)
Schema
instanceId string
state string
activate boolean
{
"instanceId": "string",
"state": "string",
"activate": true
}
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
}
NotFoundException
- 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...