downloading Files via the Aras Innovator REST API

Hello All,

please how to download Files via the Aras Innovator REST API.

thank you .

Best Regards.

Parents
  • Hello,

    You can do this by appending $value to the end of a REST call for a File item. For example, we could get the metadata for a File that's related to a Document by performing the following request.

    GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id

    We can get the actual content of that File to download by just adding $value to the end like so:

    GET {base url}/Document('8C6CEBD3DF1044CEB0B1658693735130')/Document File('9925FBEFB76346A9B898713A94059342')/related_id/$value

    Chris


    Christopher Gillis

    Aras Labs Software Engineer

  • As a note on this answer, Subscribers and Partners can go to the Documentation folder of the Aras Innovator CD Image to find the RESTful API.pdf which contains a number of samples for using the API. This example can be found in the section on File Properties

Reply Children
No Data