I want to delete a TEI in 2.22 with the following details
(trackedEntity="XV3kldsZq0H" & trackedEntityInstance="an1MP0brTkC") using

curl -X POST -d "{\"trackedEntityInstances\":
[{\"trackedEntityInstance\":\"an1MP0brTkC\"}]}" -H "Content-Type:
application/json" -u sam:*** "https:// ...
/api/trackedEntityInstances?importStrategy=DELETE"

However it returns the following Error message:

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"An
error occurred, please check import summary.",
"response":{"responseType":"ImportSummary","status":"ERROR","importCount":{"imported":0,"updated":0,"ignored":1,"deleted":0},
"conflicts":[{"object":"TrackedEntityInstance.trackedEntity","value":"Missing
required property trackedEntity"}]}

Is something wrong in the Json syntax?

Regards,

Sam Kasozi
+256 788 993565 | Skype: sam.kasoziug
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to