Hi,

We are trying to update events through the api on a dhis2 v2.24 using
something like:

curl -X POST -d @play24.json "https://play.dhis2.org/release2/api/events";
-H "Content-Type:application/json" -u admin:district -v

with play24.json :

{"events":[{"programStage":"dBwrot7S420","orgUnit":"DiszpKrY
Ng8","program":"lxAQ7Zs9VYR","href":"https://play.dhis2.org/
release2/api/events/A7vnB73x5Xw","event":"A7vnB73x5Xw","status":"ACTIVE","
eventDate":"2016-07-01T00:00:00.000","orgUnitName":"Ngelehun
CHC","attributeCategoryOptions":"as6ygGvUGNg","created":"
2016-04-12T16:05:16.957","lastUpdated":"2016-04-12T16:05:16.
957","coordinate":{"latitude":0.0,"longitude":0.0},"
dataValues":[{"lastUpdated":"2016-04-12T16:05:16.974","stor
edBy":"admin","created":"2016-04-12T16:05:16.974","dataEleme
nt":"sWoqcoByYmD","value":"true","providedElsewhere":
false},{"lastUpdated":"2016-04-12T16:05:17.012","storedBy"
:"admin","created":"2016-04-12T16:05:17.012","dataElement"
:"vANAXwtLwcT","value":"12","providedElsewhere":false}],"notes":[]}]}

dataValues are properly updated but the 'eventDate' remains unchanged...

Doing the same with the latest Dhis2 version (v2.27) works well, the event
date is properly updated.

Any idea why it is not working with  v2.24 ?
Any idea how to change an EventDate through the API with v2.24 for a batch
of events ?

Many thanks,

-- 

Stéphane Delbeke

t: +32 2 319 47 99

www.bluesquarehub.com
[image: twitter.png] <https://twitter.com/blsqhub> [image: facebook.png]
<https://www.facebook.com/blsqhub/> [image: linkedin.png]
<https://www.linkedin.com/company/bluesquarehub>
_______________________________________________
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

Reply via email to