← Back to team overview

dhis2-users team mailing list archive

Re: Data sets complete registrations throught web api

 

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, <marcgarnica13@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> 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
lars@xxxxxxxxx
http://www.dhis2.org <https://www.dhis2.org/>

References