I want to test my APIs on Postman with the token so, I just write a URL with a POST request. Then select Authorization option and Choose Bearer Token
and paste my token. After that, I choose the raw and JSON option and pass the JSON object but data is not Submitted.
Asked
Active
Viewed 1,537 times
0

Vijay Gehlot
- 80
- 1
- 10
-
The warning triangle, next to the type dropdown, is telling you that the POST body language (JSON) and the `Content-Type` header do not match. Did you select a different body type before selecting `raw`? – Danny Dainton Feb 12 '20 at 08:03
3 Answers
3
You may add Authorization
token value to your header request
Example
Edit
Sending object through body request
In "Body" section click on "form-data" tab and add your key/value pairs.
Click on "Headers" add "Content-Type" as header and "application/x-www-form-urlencoded" as value.

Foued MOUSSI
- 4,643
- 3
- 19
- 39
-
I have already done that, Actually my Request Header `Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c` so, just pass on header like that but it's not working – Vijay Gehlot Feb 12 '20 at 07:37