404 client error, could not load historical data issue

Could not load historical data, retrying
2022-03-25 15:42:13,866 th5: 145 404 Client Error: Not Found for url: https://data.alpaca.markets/v1/bars/5Min?symbols=CCL&limit=100

suddenly getting this error. Anybody figure out how to work around it?

The Alpaca Data API v1 endpoint for requesting bars is now deprecated. You have to use the new Alpaca Data API v2 endpoints in your code.

How do I update to the new endpoint? I am using Python