From the course: Postman Essential Training

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Creating POST requests

Creating POST requests

- [Instructor] In the previous movie we saw how to retrieve contacts we created from the contact list API, but we created those contacts by using the UI. Now we'll learn how to do a post to our API to create contacts that way. Let's open up our contact list collection and then our basic endpoint tests folder. We are going to create our post request by duplicating our get contact list request. So click on the three dots next to the get contact list request, then choose duplicate and you can see now we have made a copy. Let's rename by clicking on the three dots and choosing rename, and we will rename the request add contact, and click return. Now we need to change the HTTP verb from get to post because when you are adding a new contact to the database it needs to be a post request. The URL of the request is going to be the same as the URL for the get contact list. So we don't need to make any changes there. However…

Contents