dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #46721
Re: Dataset allocation via API
Hi,
Yes, this is possible.. are you assigning to just one, or to multiple org
units?
If you are just assigning a data set to an org unit, maybe just using the
collection API is the simplest choice? [1]
If not, you should get the full data set payload, update the org unit
list.. and then PUT it back to the server.
[1]
http://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_metadata_crud.html#webapi_adding_removing_objects_collections
--
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
On Fri, Sep 9, 2016 at 12:50 PM, Gichangi John <gichangijohn3@xxxxxxxxx>
wrote:
> HI Team
>
> Is it possible to allocate datasets to organization units using the API.
>
> Regards
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References