Use different events APIs based on API version

Rather than always trying the new endpoint and then using the
old endpoint if we get a 404.

[#64525814]