Move Instance
PATCH/api/v2/admin/business/move-instance
This functionality allows administrators to flexibly manage associations of instances with businesses, allowing for reorganization and reallocation according to business needs.
Request
- application/json
Body
required
sourceInstanceId Source Instancerequired
businessIdTarget Business Targetrequired
Responses
- 200
- 400
- 401
- 500
AdminMoveInstanceResponse
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
businessId stringrequired
name stringrequired
businessToken stringrequired
attributes objectrequired
createdAt date-timerequired
updatedAt date-timerequired
deletedAt date-timerequired
Instance object[]required
instanceId stringrequired
name stringrequired
state stringrequired
Default value: active | inactive
connection stringrequired
Default value: open | close | refused
createdAt date-timerequired
deletedAt date-timerequired
businessBusinessId stringrequired
Auth object
authId stringrequired
jwt stringrequired
createdAt date-timerequired
updatedAt date-timerequired
{
"businessId": "string",
"name": "string",
"businessToken": "string",
"attributes": {},
"createdAt": "2024-04-14T14:11:05.596Z",
"updatedAt": "2024-04-14T14:11:05.596Z",
"deletedAt": "2024-04-14T14:11:05.596Z",
"Instance": [
{
"instanceId": "string",
"name": "string",
"state": "active | inactive",
"connection": "open | close | refused",
"createdAt": "2024-04-14T14:11:05.597Z",
"deletedAt": "2024-04-14T14:11:05.597Z",
"businessBusinessId": "string",
"Auth": {
"authId": "string",
"jwt": "string",
"createdAt": "2024-04-14T14:11:05.597Z",
"updatedAt": "2024-04-14T14:11:05.597Z"
}
}
]
}
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
}
InternalServerErrorException
- 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...