I think you should instead pass a separate field which specifies the body type and then an Accept header to specify the return type expected.