update event rest api