# Edit campaign events using mautic api

**URL:** <https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715>\
**Category:** Development\
**Tags:** development\
**Created:** [October 23, 2020, 2:44pm UTC](https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715 "2020-10-23T14:44:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixticsmart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/felixticsmart/32/1627_2.png) [@felixticsmart](https://forum.mautic.org/u/felixticsmart)\
**Post date:** [October 23, 2020, 2:44pm UTC](https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715/1 "2020-10-23T14:44:44Z")

</div>

My problem is that I am trying to edit a campaign event from mautic using PUT / api / campaigns / events / batch / edit method  
But for some reason I have not been able to update the events, someone knows how to place the array, this is the one I have in php  
event = [ 'eventId' =\> id,  
‘contactId’ =\> contactid, "tiggerMode" =\> tiggerMode,  
‘tiggerInterval’ =\> tiggerInterval, 'name' =\> name,  
‘id’ =\> id, 'triggerDate' =\> tiggerDate,  
“dateTriggered” =\> $ dateTriggered,  
];

---

<div class="post-metadata">

**Author:** ![paul2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/paul2000/32/1165_2.png) [@paul2000](https://forum.mautic.org/u/paul2000)\
**Post date:** [May 22, 2022, 6:44pm UTC](https://forum.mautic.org/t/edit-campaign-events-using-mautic-api/16715/2 "2022-05-22T18:44:57Z")

</div>

I think you made need to update (Patch) to write events.
