Add API endpoints to create and update events