Yes, unfortunately this particular instances is using 2.18.
Because of the 1 error message per update (1400+) with my current XML file
using curl or node.js, I instead I asked the API for a list of dataelements
only showing the zerosig status as an XML file:
/api/dataElements.xml?paging=false&fil
Proper PATCH is only available in DHIS 2.19+, in 2.18 we supported "PATCH"
for a single property.
curl -X PATCH -d "{\"name\": \"updated name\"}" -u user:pass
http://localhost/api/dataElements/ID/name
Please note that the URL ends with the name of the property you are
updating.
--
Morten
On Fr
Well that is an odd message :-(
What version of dhis are you using? PATCH functionality was
implemented in March this year, so is only available from v2.19
onwards. Unfortunately if you are using 2.18 or below you are out of
luck with this approach :-(
On 7 August 2015 at 15:55, Timothy Hardin
Hello Bob,
I hadn't tried that one before, thanks for the suggestion and how to!
So I made an xml file with the following:
http://dhis2.org/schema/dxf/2.0";
zeroIsSignificant="false" />
and called it zerosig2.xml
Then here is my curl command and the resulting output (gives an error) any
ideas?
Hi Tim. Are you using PATCH for this update operation? This works
well if you just need to update a particular set of fields, not the
entire dataelment (for which you would use POST and include mandatory
fields like name and shortname). For example:
curl -X PATCH -d "{\"code\": \"VCCT_6\"}" -H
5 matches
Mail list logo