Thanks Morten. It worked as you said. It will be nice to test it in 2.19,
as now I need to call the API n times if i need to add n orgunitgroups to
one orgunit.
Thanks for your quick answer.
On Sun, May 3, 2015 at 9:36 AM, Morten Olav Hansen
wrote:
> If you can use 2.18 or 2.19, you can use the
If you can use 2.18 or 2.19, you can use the collection API [1]. If you use
2.18, you -must- use the owning side, which means, add the orgUnit to the
orgUnitGroup (and not the other way), in 2.19, you can do both.
[1]
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s08.html#d5e1079
--
Mo
Hi Jose,
I think this was discussed recently here
https://www.mail-archive.com/dhis2-devs@lists.launchpad.net/msg35136.html
Regards,
Jason
On Sun, May 3, 2015 at 1:45 AM, Jose Garcia Muñoz
wrote:
>
> Hi devs,
>
> So, I am trying to do it in one step (create the org.unit + assign one
> org. u
Hi devs,
So, I am trying to do it in one step (create the org.unit + assign one org.
unit group) using the following API call:
http://localhost:8080/dhis/api/organisationUnits
and the payload:
{
"name":"The name",
"shortName":"Short name",
"parent":{
"id":"wSkI02omzoJ"
},
"openingDate":"2015-03
4 matches
Mail list logo