Can't query TrackedEntityInstaces

I try to query tracked entity instances specifying an orgUnit:
api/trackedEntityInstances?orgUnit=C4eOn9BKp6y
But i get this response

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"At least one organisation unit must be specified"}

Any tips? Did use the wrong query format. What is it?

Try using
api/trackedEntityInstances?ou=C4eOn9BKp6y
instead (i.e using ou instead of orgUnit).

2 Likes

@RModi is correct, you cannot use orgUnit and you should use ou intead. Please check the available parameters in the documentation: Developer Manual - DHIS2 Documentation

2 Likes