INyabuto
(Isaiah Nyabuto)
1
Hi!
I want to extract a complete set ( all children and sub children) of a specific organisation units like this.
/api/25/metadata.json?assumeTRUE=TRUE&organisationUnits=TRUE&filter=name:eq:Tanzania&fields=id,name,children[id,name,children[id,name,children[id,name,children[id,name,children[id,name,children[id,name,children[id,name,children[id,name]]]]]]]
is there a shorter way of doing that?
Thanks
···
Isaiah Nyabuto
email: isaiahnyabuto@gmail.com
Tel: +254 729 572 616
Lars
(Lars Øverland)
2
Hi Isaiah,
for special operations for org units I would use the /organisationUnits endpoint directly. Docs here:
https://docs.dhis2.org/master/en/developer/html/webapi_organisation_units.html
regards,
Lars
···
Lars Helge Øverland
Technical lead, DHIS 2
University of Oslo
lars@dhis2.org
https://www.dhis2.org