[Solution]: Cannot delete device as it is part of active bot deployment

CAUTION: The steps mentioned below may affect existing deployments on the devices. Kindly perform the steps ONLY after reviewing your existing bot deployments.

To resolve the issue, follow the below instructions and reset the device.

Note:

  • You need to have postman with access to the cloud
  • This API can be accessed only by the admin. In the case of the community edition, the “CE_bot” user can access it.

Step1: Go to the Postman and Authenticate

Method: POST

URI: https://<Control Room>/v1/authentication

Body

{ “username”: “<Admin user>”, “password”: “<Admin Pass>” }

OR

{ “username”: “<CE user>”, “password”: “<CE Pass>” }

Step2: Copy the token generated between quotes “” as shown

Cannot delete device as it is part of active bot deployment in A360

Note: For SSO-based user login, use the API Key instead of the password to generate the Authentication token.

Refer – Generate API-Key to Access APIs in A360

Step3: Reset the device

Method: POST

URI: https://<Control Room>/v2/devices/reset

Headers:
KEY:x-authorization
VALUE: <Token copied from step 1>

Cannot delete device as it is a part of active bot deployment in A360

Body 

{
"deviceIds": {
"ids": [<Device ID>]
}
}

For example, if my device id is 156079 then the API body will look like the below:

{
"deviceIds": {
"ids": [156079]
}
}

Cannot delete device as it is a part of active bot deployment in A360

Finding Device ID in A360 Control Room

You can get the device ID by going to Control Room> Devices > Click on the device name or view device > in the URL, you’ll see the device id.

https://<Control Room>/#/devices/mydevices/<DeviceID>/view

If the device has been removed from Control Room, and you don’t know what the device ID is, or it requires to be done for multiple devices, you can use the below text in the body of the API call mentioned above.

{
"allDevices": {
}
}



Source link

By i53gf