CREATE AND ENROLL TEI not working

Hi Devs,
I am trying to create and enroll one TEI via the api. The syntax I am using is per http://dhis2.github.io/dhis2-docs/2.24/en/developer/html/ch01s58.html#d0e12141 after modifying the enrollment date and incident date. I have attached a screen shot showing that while the TEI is imported, the enrollment does not go through as the api still assumes that the enrollment is a tei. I have also attached my json file showing the tei and enrollment.

Any one with ideas on how to make this work ?

rgds

David

export.json (547 Bytes)