It should be "members" not "items", items is used for something else (its part of the dimensional model), you don't need the name (but it doesn't hurt, it just gets ignored)
-- Morten On Tue, Jul 8, 2014 at 5:06 PM, Octavio GLORIO < octavio.glo...@barcelona.msf.org> wrote: > Hi, > I'm trying to create automatically data element groups and group sets by > using the API and Pentaho data integration. I had created data element > groups (empty groups) successfully. Then, I had tried to created a group > set and associate the corresponding groups by using the "items" property of > data elements group sets. The group sets had also been created, however, > the corresponding groups are not associated. Following, I have pasted a > small json that I'm using to reproduce the problem: > > *{"dataElementGroupSets":[{"name":"Laboratory 3","items":[{"name":"MALARIA > TESTING","id":"BIVjmofP0E4"}]}]}* > > "MALARIA TESTING" is a data element group created before and "Laboratory > 3" is the group set. As I said, everything is created, however "MALARIA > TESTING" is not linked to "Laboratory 3" > > Is this correct way to procedure? Is it possible to create this relations > with the API? > > Thanks in advance, > Octavio. > > > _______________________________________________ > 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 > >
_______________________________________________ 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