Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
Which API are you using?
I suggest you take a look at this tool, it's something you can model your software.
RDATA batch request with individual Sdate parameters
Excel API: formula builder - retreive data from local server
How to insert AdxRtList call in synchronous code?
Trying to attain numerous data related to credit in fixed income
Eikon .Net API - Multiple time series subscriptions are causing problems