Gilberto Ibarra
Gilberto Ibarra

Reputation: 415

Add param curl -d in POSTMAN

I try to execute the next CURL .

How can I add the param -d in POSTMAN

curl https://core.spreedly.com/v1/gateways.json \
  -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \
  -H 'Content-Type: application/json' \
  -d '{
        "gateway": {
          "gateway_type": "test"
        }
      }'

PostmanExample

Upvotes: 6

Views: 8985

Answers (1)

Alastair McCormack
Alastair McCormack

Reputation: 27724

-d is POST data.

You need to add your JSON data to the body section of the request and set the request method to POST.

E.g.

Postman screenshot with JSON body

Upvotes: 14

Related Questions