edit events api