Ref Link: Data - DHIS2 Documentation
I have gone through the above link and tried to post Data Value using XML file with the same example data as given on the Ref Link page.
I have executed API in the command line but it is giving “302 found” error.
API: curl -d @datavalueset.xml “DHIS 2 Demo - Sierra Leone” -H “Content-Type:application/xml” -u admin:district
Note: Execute above API in command line (windos)
I have done google, what “302 found” means, it says ‘The HyperText Transfer Protocol (HTTP) 302 Found redirect status response code indicates that the resource requested has been temporarily moved to the URL given by the Location header.’
I want to add respective data set value using API.
Kindly do the needful.