For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 1 2 6

Any way to update multiple items within one instrument list in one DSS REST API call?

When I have multiple items within one instrument list which need to be updated with their new User Defined Identifiers, I am able to do it with a PUT request (https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentListItems('VjF8MHgwNzZjMDY2NDZkZTczNTExfDE') but have to loop through my item list and send the request one at a time. Is there a way to batch them up and send just one request to get them all updated?

Thanks!

dss-rest-apidatascope-selectdss
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
32.2k 41 11 20

Hello @cabissi,

Perhaps:

POST /Extractions/InstrumentLists({id})/ThomsonReuters.Dss.Api.Extractions.InstrumentListReplaceAllWithIdentifiers 

can be of help, described in REST API Reference Tree in detail.

Or, if you are not looking to replace all, you can

POST /Extractions/InstrumentLists({id})/ThomsonReuters.Dss.Api.Extractions.InstrumentListDeleteItemsById 

and then

POST /Extractions/InstrumentLists({id})/ThomsonReuters.Dss.Api.Extractions.InstrumentListAppendIdentifiers 



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.

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.