← Back to team overview

dhis2-users team mailing list archive

Re: Extract a complete set of orgUnits (with all children and sub children) of a specific orgUnit

 

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


-- 
Lars Helge Øverland
Technical lead, DHIS 2
University of Oslo
lars@xxxxxxxxx
https://www.dhis2.org

Follow ups

References