← Back to team overview

dhis2-devs team mailing list archive

TEI and Enrollments API GET calls are not considering date range

 

Hi DHIS Team,

We are using below API calls to get the TrackedEntityInstance Ids and
Enrollment Ids.

*https://<host_name>/api/trackedEntityInstances?lastUpdatedStartDate=2018-06-17&lastUpdatedEndDate=2018-09-02&fields=trackedEntityInstance&ou=<orgUnit>&ouMode=DESCENDANTS&page=5&pageSize=1000&program=<program>&totalPages=true*



*http://<host_name>/api/enrollments?programEndDate=2018-08-05&programStartDate=2018-05-20&fields=enrollment&ou=<orgUnit>&ouMode=DESCENDANTS&page=1&pageSize=1000&totalPages=true&program=<program>*

The above API calls returning the total number of ids but not returning any
ids. Could you please help us to identify what we have done incorrect.

Thanks,
Rajeswari & Gaurav.

Follow ups