Adding the path name to the event API