# OAuth 2.0 - Change content type to application/json

**URL:** <https://community.postman.com/t/oauth-2-0-change-content-type-to-application-json/42580>\
**Category:** Help Hub\
**Tags:** authentication, oauth2\
**Created:** [January 4, 2023, 2:22pm UTC](https://community.postman.com/t/oauth-2-0-change-content-type-to-application-json/42580 "2023-01-04T14:22:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danrobo](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@danrobo](https://community.postman.com/u/danrobo)\
**Post date:** [January 4, 2023, 2:22pm UTC](https://community.postman.com/t/oauth-2-0-change-content-type-to-application-json/42580/1 "2023-01-04T14:22:49Z")

</div>

_My question_:  
Is it possible to change the OAuth 2.0 content request type from “application/x-www-form-urlencoded” to “application/json”? This is because the service I am calling only supports request in a body using JSON.

_Details (like screenshots)_:

![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/b/5b2705a571ecd6a041f7a464479927ffd2dd83a9.png)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/1/4/147b720e1dfa4acfe73bc8ed617160b31d6b6ad9.png)

---

<div class="post-metadata">

**Author:** ![georgek1989](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@georgek1989](https://community.postman.com/u/georgek1989)\
**Post date:** [January 17, 2024, 1:05pm UTC](https://community.postman.com/t/oauth-2-0-change-content-type-to-application-json/42580/2 "2024-01-17T13:05:28Z")

</div>

This post might be of interest to anyone looking for an alternative solution as Postman doesn’t support automatic customization of this header key through the “Get New Access Token” view

> [@OAuth2.0: Auto set the access token to env variable or customize key in the header after clicking "Get New Access Token"](https://community.postman.com/t/oauth2-0-auto-set-the-access-token-to-env-variable-or-customize-key-in-the-header-after-clicking-get-new-access-token/50431):
>
> I’m using OAuth2.0 in AuthN tab and manually able to generate the access token by clicking “Get New Access Token”. As I set the authorization data to go to request header, it automatically sets the value of the auth header with this token. But I’m unable to change the key of the auth header. Its defaulting it to “Authorization” when my application expects something like “x-access-token”. Couple of questions: How can I change the key of the default header? How to auto store the resulting access…
