Title: Change &#8220;Response content type&#8221;
Last modified: June 22, 2020

---

# Change “Response content type”

 *  [Gerald](https://wordpress.org/support/users/gerital/)
 * (@gerital)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/change-response-content-type/)
 * Thanks for updating your plugin, adding “produces” parameter gets reflected fine
   by swagger interface showing them in “Response content type”.
 * My doubt is how to distinguish 2 different formats in the request parameter as
   I can’t see any difference when inspecting WordPress “$request_data” parameter
   in register_rest_route callback function.
 * Right now I use a GET parameter adding the format manually to the URL request,
   but it should be possible through the interface. When changing the format using“
   Response content type” curl adds an -H parameter to express the expected format.
   But the request URL itself doesn’t change, it always is [https://xrcb.cat/ca/wp-json/xrcb/v1/radios](https://xrcb.cat/ca/wp-json/xrcb/v1/radios)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-response-content-type%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Change “Response content type”’ is closed to new replies.

 * ![](https://ps.w.org/wp-api-swaggerui/assets/icon-256-256.png?rev=2129970)
 * [WP API SwaggerUI](https://wordpress.org/plugins/wp-api-swaggerui/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-api-swaggerui/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-api-swaggerui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-api-swaggerui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-api-swaggerui/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [format](https://wordpress.org/support/topic-tag/format/)

 * 0 replies
 * 1 participant
 * Last reply from: [Gerald](https://wordpress.org/support/users/gerital/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/change-response-content-type/)
 * Status: not resolved