The question is Which car you are asking about?
Only a few car makes and models allow this change. Toyota Landcruiser and Toyota crown are few examples, and if you change the body with the same model as your original car, it is legal, otherwise it is not legal.
Regards
Abid