Webapi events xml import

Hi. I am getting to know the webapi events functionality to import some test records. I have followed the documentation available at Tracker - DHIS2 Documentation but when I query the data after performing the steps Analytics Tables > Start Export, it generates a pivot table for the example organizational unit and the reporting period for the program
Inpatient morbidity and mortality" program for the “Ngelehun CHC” facility in the demo database. The xml file used is the one in the example document.

<?xml version="1.0" encoding="utf-8"?>

and I run it with the following instruction from my linux centos 7 machine:

curl -d @event.xmlDHIS 2 Demo - Sierra Leone
-H “Content-Type:application/xml” -u admin:district -v

I have changed the path /api/33/ to /api/36/ which I understand corresponds to the stable version 2.36.7 which I am studying and testing on.

Where can I query the result of the transaction?
Is there any error in the structure that does not allow the data to be displayed?



Hi @rbarriosparra,
Welcome to the community! :tada:

Try adding the ‘-i’ option!

curl -i -d @event.xmlhttps://play.dhis2.org/demo/api/36/events
-H “Content-Type:application/xml” -u admin:district -v

2 posts were split to a new topic: Error in reporting malaria case registration program