question

Upvotes
Accepted
13k 32 12 18

/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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.3k 25 8 13

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 5.0 MiB each and 10.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.

Click below to post an Idea Post Idea