Issue
I'm working with an api endpoint that has the following curl. When I import the curl into postman, the key column is populated with both the key and the value.
href="https://i.stack.imgur.com/auIDB.png" rel="nofollow noreferrer">
curl "https://{{Environments}}/v1/initiate" \
-H "Authorization: Bearer {accessToken}"
-X POST \
-d '{
"clientId": "1234",
"password": "5678",
"pairingCode": "9101112"
}'
Solution
Try adding the -H "Content-Type: application/json"
header to the request:
curl "https://{{Environments}}/v1/initiate" \
-H "Authorization: Bearer {accessToken}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"clientId": "1234",
"password": "5678",
"pairingCode": "9101112"
}'
When I copy the code above into Postman:
Answered By - Danny Dainton Answer Checked By - David Goodson (WPSolving Volunteer)