I’ve tried to invoke Orchestrator Rest API below to disable the machine license as following diagram but seems like not work by putting the robot name into “Documentation” in the API url and body. Its return status 200 OK but i check from Orchestrator Portal did not take any effect.
Are you authenticated with the user who has sufficient permissions to make this change? (I know it’s weird enough, as it should give a different status code anyway).
Also, what are the versions of your Robot and Orchestrator?
Problem solved. Just enter the robotname replaced the “Documentation” keyword.
https://platform.uipath.com/odata/LicensesRuntime(‘ RobotName ’)/UiPath.Server.Configuration.OData.ToggleEnabled and provide the body
{
“key”: “ RobotName ”,
“robotType”: “Unattended”,
“enabled”: false
}