dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #51704
Re: Updating multiple events via the WebAPI
Hi Farai
No, this is not possible (with PUT). What you can do, is to just do a POST,
but set strategy=CREATE_AND_UPDATE and that should give you what you want
(strategy=UPDATE if you are sure its all updates only)
--
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org
On Tue, Aug 28, 2018 at 11:57 AM Farai Mutero <fmutero@xxxxxxxxx> wrote:
> Hi Team
>
> The DHIS2 Developer documentation discusses here
> <https://docs.dhis2.org/master/en/developer/html/webapi_tracker_api.html#webapi_events>,
> the ability to POST multiple events to the Web API in a single payload,
> which is absolutely useful. Is this feature also available for updating
> existing events via a PUT request, In DHIS2 2.27 and later?
>
> Regards
> --
> Farai Mutero
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
References