How to Reset Your AA360 Device using API in Postman
Table of contents
In this tutorial, we are going to learn how to reset an Automation Anywhere device using API in Postman.
BOT stuck in In Progress Stage and not able to move it to history
BOT stuck in Pending execution Stage and not able to move it to history
Cannot delete device, as it is part of an active bot deployment
Prerequisites
To perform this activity, you will need:
Postman App or Web access
Automation Anywhere Control Room URL
Reset Device
Install Postman Desktop App
Launch Postman App
Create a POST request for Authentication and Click Send button
Method: POST
URL:
https://community2.cloud-2.automationanywhere.digital/v2/authentication
Body:
{
"username": "username",
"password": "password"
}
Provide your Control Room details (URI, Username, and Password)
Response
{ "token":"eyJhbGciOiJSUzUxMiJ9.eyyv IiOiIxIiwiY2xpZW50VHlwxv IsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNz zGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMDc4NzMsImV4cCI6MTU3MzEwOTA3MywiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NTc1NjI0OTQ2MzE2MDAsImNzcmZUb2tlbiI6ImNiZjgwZWNkZmU5YmUwYzViOGI2MDk3NmU0ZTI2MTNiIn0.rGYxbS5kKUTxtZhYtRSXpmIHwbf3IwLBIKDEA7odG5uGVAjD55Tv05bYdARx_3-tl1CBg_cDGbwj5FvaBt9u5xKu5W5j3Nur6x3PF62NeB3ZIdxiUPaFBU0Br84mPJMD4_EpwBfbeSVOMH6ngiLtJYhIOtJa0kp4pAAm3mvkuOUELtH8lf3pQf-2Ose2fUAaebDkqiH13SUF1TONAjUQv6Ef_uY0wgq9SjZwKHg9SKUhX3S8PXAJne_ih2QnN8nUE1SXGlkC04eoIvyWpFkM963XEjptc2uvwtVn42MdA4Nd1opD5yijEl9VM92Fe1sPb6_T5-oV-U1Iw0JHiX2-Ug",
Copy the API response generated token in between the quotations.
Create a POST request for Device Reset and Hit Send button
Method: POST
URL:https://community2.cloud-2.automationanywhere.digital/v2/devices/reset
Headers:
KEY | VALUE |
x-authorization | Insert Token_Value |
Body:
{
"deviceIds": {
"ids": [<Device ID>]
}
}
Let's grab the Device ID from the Control Room,
Log in to the CR
Go to Manage >> Devices >> Click on the Device
From the URL collect the device id
Example: In the below example 1234 is the device id
https://community.cloud.automationanywhere.digital/#/devices/mydevices/1234/view
The rest API mentioned in Step-3 when run from Postman gives the response "204 no content". This HTTP Status 204 (No Content) indicates that the server has successfully fulfilled the request and that there is no content to send in the response payload body. Hence this means that the request was successful.
- To finish the device reset, visit CR and refresh the page
Subscribe to my newsletter
Read articles from Harun Kumar yarramanayuni directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Harun Kumar yarramanayuni
Harun Kumar yarramanayuni
My journey in the field began with a solid foundation in electronics and communication engineering from Kuppam Engineering College, which laid the groundwork for a career in technology and automation. Having achieved certifications that speak to my proficiency in RPA platforms, I am constantly advancing the capabilities of automation.