edit event api