Logo
Markus Postman Training API Documentation

Add item

POST {{url}}/record

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status Created

{ "welcome": "You're using the API Adoption course! Check out the 'data' object below to see the values returned by this API request. Click **Visualize** to see the 'tutorial' guiding you through next steps - do this for every request in the collection!", "tutorial": { "title": "You added a new record! ", "intro": "_You didn't really add a new record, this is just a demo endpoint.._ 🙈", "data": { "message": "Record added" }, "steps": [ { "note": "You've seen how collection level info such as auth renders in the documentation–remember that this collection also uses folders. Postman will automatically structure your docs using folders and the list of requests–clicking these lets users navigate through the information." }, { "note": "When your users view the collection docs on the web inside a Postman workspace, they can click **Open Request** to go straight to a request from the description. You can send people links to all of these components inside a workspace and know that the viewer will arrive at whatever resource you want to share." }, { "note": "Let's make the **Body** data a little more dynamic using faker variables. Replace the value of the `id` property with `{{$randomLoremWord}}` and the value of `phrase` with `{{$randomCatchPhrase}}` so that it looks something like this:", "raw_data": { "id": "{{$randomLoremWord}}", "phrase": "{{$randomCatchPhrase}}", "pic": "http://placeimg.com/640/480/cats", "num": 10 } }, { "note": "Postman will generate these each time the docs are viewed or the request is sent." } ], "next": [ { "step": "Before you move on, save the response to this request as an example like you did before by choosing **...** > **Add example** > **Save**, and come back here to the `POST` request." }, { "step": "Next open the `PUT` `Update item` request and hit **Send**." } ] } }



Curl
curl -X POST 'prod-api/record' -d '{"id":"$randomLoremWord","phrase":"$randomCatchPhrase","pic":"http://placeimg.com/640/480/cats","num":10}'

ENDPOINTS