REST api for updating events