This is the json request:
JSONObject searchJSONObject = new JSONObject();
searchJSONObject.put(
"SearchRequest",
new JSONObject()
.put("IdentifierType", "Isin")
.put("Identifier",
new JSONArray().put("ISIN1").put("ISIN2"))
.put("PreferredIdentifierType", "Ric"));
I am getting the following error:
org.apache.http.client.HttpResponseException: Bad Request
Is this the correct way to frame the request? If not, how else can it be done?