Complete DataSet Registration

This seems to work fine. I just copied the request from the data entry form on the demo site as a curl command and modified it slightly. There are other ways to do this as well as mentioned in the docs. Otherwise, you should provide the exact request you are making, the exact payload, and the exact response from the server.

curl ‘https://play.dhis2.org/demo/api/25/completeDataSetRegistrations’ \

-u admin:district \

-H ‘Accept-Encoding: gzip, deflate, br’ \

-H ‘Content-Type: application/x-www-form-urlencoded; charset=UTF-8’ \

-H ‘Accept: application/json, text/javascript, /; q=0.01’ \

-H ‘Connection: keep-alive’ -H ‘DNT: 1’ \

–data ‘ds=pBOMPrpg1QX&pe=201712&ou=ImspTQPwCqd&multiOu=false’ \

–compressed -v

···

On Wed, Nov 22, 2017 at 9:16 AM, rabbia@pace-tech.com wrote:

Hi Jason,

yeah, i have already read the documentation and i’ve tried it as well but still its not working. I don’t know what the issue is. Kindly guide me.

Thank You.

Regards: Rabbia Naz Ali

On 2017-11-22 12:51, Jason Pickering wrote:

Hi Rabia,

Did you have chance to read our documentation about completing data

sets?

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_completing_data_sets

[4]

Regards,

Jason

On Wed, Nov 22, 2017 at 8:46 AM, rabbia@pace-tech.com wrote:

Aoa,

i’ve inserted some data into database against dataset in dhis2 but

it doesn’t marked it as completed in “completedatasetregistration”

this table of Database. I want to ask about how can i do this using

API.

I’ve tried this one

"$url =

"http://64.50.171.246:8080/api/26/completeDataSetRegistrations [1]

period=201503 dataSet=Ep9cqvuYYKb organisationUnit=AMaQFVRNoaL

storedBy=imported"

but its not working as it shows the status as ‘success’ but not

marked the data set.

Your response will be appreciated.

Thank You.

Regards: Rabia Naz Ali


Mailing list: https://launchpad.net/~dhis2-users [2]

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users [2]

More help : https://help.launchpad.net/ListHelp [3]

Jason P. Pickering

email: jason.p.pickering@gmail.com

tel:+46764147049

Links:


[1] http://64.50.171.246:8080/api/26/completeDataSetRegistrations

[2] https://launchpad.net/~dhis2-users

[3] https://help.launchpad.net/ListHelp

[4]

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_completing_data_sets

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049