Dataset allocation via API

HI Team

Is it possible to allocate datasets to organization units using the API.

Regards

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

···

On Fri, Sep 9, 2016 at 12:50 PM, Gichangi John gichangijohn3@gmail.com 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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Thanks Olav