K.Sumith
K.Sumith

Reputation: 175

How to Post a REST from curl using Postman

I am trying add new contacts to Freshsales CRM in my Java Spring MVC Web Application. I have the following curl cammand to add contacts to fresh sales.

curl -H "Authorization: Token token=sfg999666t673t7t82" -H "Content-Type: application/json" -d '{"contact":{"first_name":"James", "last_name":"Sampleton (sample)", "mobile_number":"1-926-555-9503"}}' -X POST "https://domain.freshsales.io/api/contacts"

I need to know how I can post this REST from the curl using POSTMAN.

Upvotes: 0

Views: 578

Answers (1)

Ajay
Ajay

Reputation: 604

  1. Open Postman
  2. Change method to POST, add url, add Authorization in headers
  3. Add body
  4. Set format to application/json
  5. Hit on Send

Postman documentation for sending API requests

Upvotes: 2

Related Questions