Hi Marc,

this is admittedly a bit strange and we should improve it. Try defining the
acceptable response representation:

-H "Accept: text/plain"





regards,

Lars



On Fri, Oct 7, 2016 at 3:20 PM, <marcgarnic...@gmail.com> wrote:

> Hi all,
>
>
>
> I’m trying to complete data sets registration using DHIS2 web api, I’m
> currently using curl as below:
>
>
>
> curl -x POST “server/api/completeDataSetRegistrations?ds=xxx&pe=2011&ou=xxx”
> -u user:password -v
>
>
>
> And I’m always getting a http error code 406 , could not find acceptable
> representation.
>
>
>
> Does anyone know what I’m doing wrong?
>
>
>
> Thank you
>
>
>
> Marc Garnica
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org <https://www.dhis2.org/>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to