add commit to event api call