dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40740
Import TrackedEntityInstances through api
Dear Tracker Team,
I am trying to import trackedEntityInstances (json file) for HISP Uganda
demo.
When I send the json file, I get an error below.
* Connection #0 to host tracker.hispuganda.org left intact
{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"program
is required for program scope"}Done
Below is the json I am sending
{"lastUpdated":"2014-09-02
13:40:25.845","trackedEntity":"lq6b0EbvbWJ","created":"2014-09-02
13:40:25.416","orgUnit":"V5XvX1wr1kF","trackedEntityInstance":"qqPocsUTn0D","relationships":[],"attributes":[{"displayName":"Gravida","valueType":"NUMBER","attribute":"UuNwH6pSBfT","value":"1"},{"displayName":"ANC
Client
Number","valueType":"TEXT","attribute":"XS1hnJSUhJR","value":"18887X8YP2015"},{"displayName":"Para
(>7
months)","valueType":"NUMBER","attribute":"rKqAjEn6zrS","value":"0"},{"displayName":"Para
(miscarriages < 7
months)","valueType":"NUMBER","attribute":"pRgEk4Ao5CO","value":"0"},{"displayName":"Age","valueType":"NUMBER","attribute":"j7gaoJddiXp","value":"22"}]}
What is the right endpoint for trackedEntityInstances while respecting the
programScope.
I am using 2.21 snapshot build 20702
I believe it is the same with 2.20. We need this to meet the deadline.
Alex
Thanks.
--
Alex Tumwesigye
Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET
Kampala
Uganda
IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya
IT Specialist (Servers, Networks and Security, Health Information Systems -
DHIS2 ) & Solar Consultant
+256 774149 775, + 256 759 800161
"I don't want to be anything other than what I have been - one tree hill "
Follow ups