Data sets complete registrations throught web api

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

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@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

lars@dhis2.org

http://www.dhis2.org

A post was merged into an existing topic: Complete DataSet Registration

Repeated topic page, please continue the discussion here: