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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 2 3 4

REST API instrument list creation

Hi,

I went through the REST API tutorial 9 for creating instrument list.

However, I was wondering if you can create an instrument list from scratch by importing via API a large instrument list in the same way as the GUI or FTP.

thanks

Ludovic

dss-rest-apidatascope-selectdssrest-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

Upvotes
Accepted
11.3k 25 8 13

You can import instrument list from CSV or XML file using ImportFromBytes endpoint. The imported bytes data is in base64 format, so application needs to read data from file and convert it to base64 format first. For example code and message, please see the Import: XML and Import:Csv example in the "C# Example Application" in download page.


importfrombytes.png (76.7 KiB)
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.