DSS REST API get file content

Options

We want to download the content of a rate file via a DSS REST API call.

Looking at the documentation we executed the following calls:

1. Authentication


POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken

2. LastExtraction


GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/Schedules('0x053821f5f5340856')/LastExtraction

3. Files


GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ReportExtractions('15042211')/Files

4. Value


GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractedFiles('VjF8fDcyODY0MzY=')/$value

The file we downloaded was the XML rate file (ExtractedFileType.Full).
Our understanding is that the id of that file changes with every new
extraction. Is that correct?

Is there any way of setting that file id to be the same for every
extraction?

Is there any call available in the API that would allow us to download
the rate file for the last extraction by making just 1 call?

Best Answer

  • Troy Dalldorf
    Answer ✓

    Based on your request, we have added this feature to our 10.7 release. These are the new endpoints we have added that will be consistent for a schedule allowing you to retrieve the most recent extraction results with the same url.

    ../Extractions/Schedules('0x053821f5f5340856')/LastExtraction/$value

    ../Extractions/Schedules('0x053821f5f5340856')/LastExtraction/FullFile/$value

    ../Extractions/Schedules('0x053821f5f5340856')/LastExtraction/NotesFile/$value

    ../Extractions/Schedules('0x053821f5f5340856')/LastExtraction/RicMaintenanceFile/$value

Answers