uploading zip Dicom archives via REST API

Hi, is it possible to upload a whole zip file with Dicom study to Orthanc via REST api? If so, what is the url?

Thanks
RG

Hi RG,

You can post to /instances. Make sure you set the content-type correctly.

It is documented https://api.orthanc-server.com/#tag/Instances/paths/~1instances/post

James

thanks James, this API documentation is very nice.

R

o implement this API? Can anyone help me with more details?

Hello,

Here is a working example using the cURL command-line tool:

$ curl http://localhost:8042/instances --data-binary @DEMO.zip 

In this example, DEMO.zip is a ZIP archive containing DICOM files.

Regards,
Sébastien-