Event Function

Updated with Create Event Function for api