The Remote Server Returned an Error: (400) Bad Request
Symptom
When using the “UpdateAccount” API call. the following error is received:
The remote server returned an error: (400) Bad Request.
Environment
10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2 Cyber-Ark API/SDK REST API
Cause
The encountered error may occur when the requested property does not exist.
Resolution
Visually inspect the account on which the change is being made, and confirm the properties exist.
In case the properties in question are not standard mandatory account properties, but added optional properties, please try using the platformAccountProperties parameter in order to call them.
For example:
{ "op": "add", "path": "/platformaccountproperties/port", "value": "456"}
For more information, please refer to our online documentation through the link below:
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/SDK/UpdateAccount%20v10.htm