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

cabissi
cabissi Newcomer

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!

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    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