Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2023-02-02 04:26 AM
Hi all,
Updating a record using the Archer ContentAPI works, but only when the request actually contains a change.
Eg, if I have a risk with ID 1234 and the Name field contains the text "Fraud Risk", I can successfully run the following
POST: https://archer.bowmengroup.com/RSAarcher/contentapi/Risk_Register
{"Risk_Register_Id":1234,"Name":"Fraud Risk TAB"}
In the response as well as the Archer UI, I see the change reflected and all is good.
However, when I then run the exact same thing again, without changing the content in Name to something different, I just receive a status 400. No explanation, no further context, just status 400. This behaviour is consistent when I try to update a record without making actual changes. As a status 400 could be caused by a lot of things, it not very useful in this context.
Is this expected behaviour? If so, any way around this? It's making things quite complex for our integrations. When trying to update a record, we don't know whether we receive the 400 response because there are no changes or because there is something is syntactically wrong with our request (or something whatever other causes the 400 response can have).
Thanks!
2023-02-02 06:32 PM
Please check out and vote up the Archer Idea: Enhance the Content API responses to return valid JSON, better error handling, and validation.