Implement creating and updating events (PUT).