Updating events api.