Re: [Dhis2-devs] Attribute value CRUD through web api

2015-12-03 Thread Nicolas Germeau
Thanks for the answer Morten. On Wed, Dec 2, 2015 at 8:15 AM, Morten Olav Hansen wrote: > Hi > > Partial update of attribute values are currently not supported. You must > get the full payload (?fields=:owner), make the modifications, then send > the whole payload back (PUT /api/organisationU

Re: [Dhis2-devs] Attribute value CRUD through web api

2015-12-01 Thread Morten Olav Hansen
Hi Partial update of attribute values are currently not supported. You must get the full payload (?fields=:owner), make the modifications, then send the whole payload back (PUT /api/organisationUnits/ID) -- Morten On Tue, Dec 1, 2015 at 10:20 PM, Nicolas Germeau wrote: > Hello Jason, > > Thank

Re: [Dhis2-devs] Attribute value CRUD through web api

2015-12-01 Thread Nicolas Germeau
Hello Jason, Thanks for swift answer. *1) url and payload use to create: * POST on http://139.162.212.229:8081/rdcinstance/api/organisationUnits/LSVPfFapdqt/attributeValues with payload { "value": "5", "attribute": { "id": "YnIzwq4yFAy" } } RESPONSE: Request method 'POST' not supported *2) u

Re: [Dhis2-devs] Attribute value CRUD through web api

2015-12-01 Thread Jason Pickering
What was the response and what was the payload? Which version? On Tue, Dec 1, 2015, 15:34 Nicolas Germeau wrote: > Hello, > > I'm trying to create/update attribute values through the web api but it > seems that I can't find the correct syntax. > > To be specific I want to create or update attrib

[Dhis2-devs] Attribute value CRUD through web api

2015-12-01 Thread Nicolas Germeau
Hello, I'm trying to create/update attribute values through the web api but it seems that I can't find the correct syntax. To be specific I want to create or update attribute value on a specific orgunit. For create: i tried to post with a payload (attributeValue and attribute) on the attributeVa