[Dhis2-devs] [Bug 1618147] Re: Web API PATCH not working

2016-09-02 Thread Lars Helge Ă˜verland
** Changed in: dhis2 Status: New => Won't Fix -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1618147 Title: Web API PATCH not working Status in DHIS: Won't Fix Bug description: I can

Re: [Dhis2-devs] [Bug 1618147] Re: Web API PATCH not working

2016-08-30 Thread Jim Grace
You're right. As you can see in my first example, I did a PATCH to /demo but GET /dev. Sorry about that! Thanks! On Tue, Aug 30, 2016 at 5:40 PM, Halvdan Hoem Grelland wrote: > Jim, > > Your example works completely fine. The name is getting changed. > > On Tue, Aug 30, 2016 at 2:47 PM, Jim Gra

Re: [Dhis2-devs] [Bug 1618147] Re: Web API PATCH not working

2016-08-30 Thread Halvdan Hoem Grelland
Jim, Your example works completely fine. The name is getting changed. On Tue, Aug 30, 2016 at 2:47 PM, Jim Grace <1618...@bugs.launchpad.net> wrote: > Thanks, Morten. > > I've tried it without the /name, and it still doesn't change the name, > e.g.: > > curl -X PATCH -d '{"name": "New Name"}' -H

[Dhis2-devs] [Bug 1618147] Re: Web API PATCH not working

2016-08-30 Thread Jim Grace
Thanks, Morten. I've tried it without the /name, and it still doesn't change the name, e.g.: curl -X PATCH -d '{"name": "New Name"}' -H "Content-Type: application/json" -u admin:district https://play.dhis2.org/dev/api/24/dataElements/fbfJHSPpUQD I've also tried putting the "id" field into the pa

[Dhis2-devs] [Bug 1618147] Re: Web API PATCH not working

2016-08-29 Thread Morten Olav Hansen
Hi Jim Would it be possible for you to move over to the new endpoints for PATCH? that means using /api/type/ID directly, and not /api/type/ID /prop-name? the old endpoint was just needed as we had very very basic PATCH support to start with.. now that we support it a bit better (it still have some