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



On Mon, 25 Jun 2018 at 08:18, Isaiah Nyabuto <isaiahnyab...@gmail.com>
wrote:

> 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: isaiahnyab...@gmail.com
> Tel: +254 729 572 616
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>


-- 
Lars Helge Øverland
Technical lead, DHIS 2
University of Oslo
l...@dhis2.org
https://www.dhis2.org
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to