orchestrator-powershell
orchestrator-powershell copied to clipboard
Edit-UiPath Robot BadRequest
Edit-UiPathRobot -ID 226 -Password test -Verbose
Results in below error:
Edit-UiPathRobot : Operation returned an invalid status code 'BadRequest'
At line:1 char:1
+ Edit-UiPathRobot -ID 226 -Password test -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Edit-UiPathRobot], HttpOperationException
+ FullyQualifiedErrorId : Microsoft.Rest.HttpOperationException,UiPath.PowerShell.Cmdlets.EditRobot
Details of Orchestrator it is being used upon:
URL : https://... WindowsCredentials : True Authenticated : True ApiVersion : 9.0 BuildVersion : 2019.10.15 OrganizationUnit : TenantName : Default AccountName : RequestTimeout : CloudDeployment : None
This error also holds for changing other items such as machine / description
Additional info found:
A similar issue happens in case you try to post to the API when you miss one of the following fields:
- ProvisionType
- Type
- LicenseKey