10-14-2022 01:33 AM
Hi Team,
I have been struggling to find the resolution of this issue so basically, I have imported the Intersite collection on Postman however what I am trying to find out is how can I get the requested Body JSON code for the POST request.
For example there are certain pre-defined commands on Postman like GET, POST & PATCH request for NTP where there is a predefined JSON body code mentioned in it. (Screenshot Below)
How do I get this JSON body for the other POST commands for example creating organisation, vlan policy etc.
Kindly provide the answer in detail.
Regards,
Pranav Gupta
Solved! Go to Solution.
10-14-2022 05:40 AM
As the postman collection is just a very small example subset you would need to reference the apidocs on the payloads, for instance with create organization (https://intersight.com/apidocs/apirefs/api/v1/organization/Organizations/post
The other option which is probably much easier is to just run through the steps in the UI with browser developer tools open, for instance to create an organization we step through the menus in the UI and once we hit create we can check in the browser dev tools network tab to see that it made a post to /api/v1/organization/Organizations with the below payload to create the org:
We can use that as a getting started point for Postman/Python/Powershell etc..
10-14-2022 05:40 AM
As the postman collection is just a very small example subset you would need to reference the apidocs on the payloads, for instance with create organization (https://intersight.com/apidocs/apirefs/api/v1/organization/Organizations/post
The other option which is probably much easier is to just run through the steps in the UI with browser developer tools open, for instance to create an organization we step through the menus in the UI and once we hit create we can check in the browser dev tools network tab to see that it made a post to /api/v1/organization/Organizations with the below payload to create the org:
We can use that as a getting started point for Postman/Python/Powershell etc..
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide