I don't think Rocco actually appealed. I think he asked the 1st base ump to ask for help.
After they got together and called him out, St Louis appealed.
Not during a game, but players have swapped dugouts before and after a game many times.
https://www.mlb.com/news/players-traded-to-the-other-dugout-c292900478
Google and BaseballRef are your friends.