This commit allows to edit an event via the API

When an event is submitted with the same urlfriendly name the event is
updated instead of newly created.