update events api