question

Upvotes
Accepted
21.8k 57 14 21

/Extractions/InstrumentListExists endpoint does not exist

The endpoint /Extractions/InstrumentListExists, and others in same category as documented in online API Reference Tree are invalid. The correct call to this method will be through endpoint: Extractions/InstrumentLists(ListId='xxxx').

The response does not contain a boolean either, but a JSON error object.

dss-rest-apitick-history-rest-apirest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

Hi @Gurpreet.

I have tried the InstrumentListExists endpoint and found that it works with the following request.

GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentListExists(ListId='InstrumentList Id')

The response contains a boolean value. Below are the samples.

Exist instrument list:

{
  "@odata.context": "http://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Edm.Boolean",
  "value": true
}

Non-Exist instrument list:

{
  "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Edm.Boolean",
  "value": false
}

If the result is different from yours, could you please your full request and response message?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks, I was invoking it by sending ListID parameter in the body of message. The method signature you provided works. This clarification should be added to API documentation.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.