Hi That syntax does not work anymore, please try without the /name part at the end
-- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Nov 24, 2017 at 7:19 PM, Omer Butt <omerbutt2...@gmail.com> wrote: > Hi, > > Dhis-2 Developer Guide: > I have to use partial update Api to update the organisation unit > attributes .But could not get it. Can you please make sample for orgunit > attribute update using api. > > *below is the api for Partial Update .* > > The format for updating a single property is the same as when you are > updating a complete object, just with only 1 property in the JSON/XML file, > i.e.: > > curl -X PATCH -d "{\"name\": \"New Name\"}" -H "Content-Type: > application/json" > -u admin:district > https://play.dhis2.org/dev/api/26/dataElements/fbfJHSPpUQD/name > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> > <#m_4138212393021094125_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > 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 > >
_______________________________________________ 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