← Back to team overview

dhis2-devs team mailing list archive

Re: Posting ADX file as a zip

 

It is possible. Just do post with a zip file as binary content, but keep
the content type Application/add+xml

It works both for synchronous and async imports.

Note, that at some point in earlier revisions of 2.27 and prior versions,
content type was application/xml+adx

On Fri, Aug 24, 2018, 14:45 Pooben Dass <pooben@xxxxxxxx> wrote:

> Hi Devs
>
> Is it possible to do a POST using a zip/gzip file via the API?
>
> Kind regards
> Pooben
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclaimer@xxxxxxxx
> <disclaimer@xxxxxxxx> and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>

References