Hello DHIS2 expert, I need your assistance on how to push the data from APIs to DHIS2 system.
If any one has codes format of above issue please I need your help.
Regards
Hello Bakari!
Welcome to the world of DHIS2 Development!
First you need to get the metadata for the specific form. For example, for the Population Form in the DHIS2 demo server, substitute the Dataset ID and append the /dataValueSet
to get metadata format.
So you just need to create a POST request to the endpoint /api/dataValueSets
so in our case, https://play.im.dhis2.org/stable-2-41-0-1/api/dataValueSets
Give it a try and let us know!
2 Likes