dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50776
Re: Web API - Finding organization units assigned to a program
Hello,
For finding all org units assigned to a specific program you could use :
your-web-address/api/programs/
the-program-id-you-want-to-view?fields=id,displayName,organisationUnits[id,
displayName]
This just shows you the id and the name of the organisation units. For more
info you can take a look at the section "Metadata field filter" in the
developer manual.
Sincerely.
On Wednesday, February 28, 2018, Edouard Lavaud <edouard.lavaud@xxxxxxxxx>
wrote:
> Hi there,
>
> Using 2.28 and its web API, I need to find all the organisation units
> which have been assigned a specific tracker program.
>
> Any idea how I could handle that? (I could loop through all OU and test
> them, but that is not super beautiful, isn't it?)
>
> Thanks!
>
> Edouard
>
Follow ups
References