How to modify Content-Type in postman

Viewed 16456

I'm trying to test my logic app API in postman but I'm having an issue with header postman automatically adding

Content-Type = multipart/form-data;

when I hover on the content-type tab seeing this "use the request body tab to control the value or remove the header"

Can anyone help me with how I can set Content-Type = application/json

enter image description here

3 Answers

Postman won't allow you to edit the headers that it auto-generates based on your drop-down selections, and Content-Type is one of these.

However it will allow you to deselect the auto-generated header and add a custom Content-Type header with any value you want. As far as the actual request is concerned, that's equivalent.

custom content type header in postman

Go to Body -> select raw -> Select JSON from the dropdown. It should look like the image below then set it to application/json

enter image description here

Taking the example of the auto-generated Cookie header, if you would like to get rid of it, just click on the blue Cookies text (top-right), and unselect all the unwanted cookies, and the cookie header will be modified accordinaly

enter image description here

Related