05-29-2023 08:34 PM
Hi, I'm new for calling API in vManage, i wanna ask about the request body for /device/tools/servicepath/{deviceIP}. i can't find the example of request body for Post Operation. In API documentation, it's only like this "{ }". When im using this request body for calling API, i get this 400 response error :
Solved! Go to Solution.
05-30-2023 03:43 AM
I did a capture in dev tool chrome and see this when it is ran from the UI
05-30-2023 03:43 AM
I did a capture in dev tool chrome and see this when it is ran from the UI
05-30-2023 05:09 AM
Hi,
could you give an information, how to find POST body for API calls? What is the trick or method?
Like configuring smth via API call, but how I'll fill and provide body properly?
05-30-2023 07:57 AM
In the past i used the apidocs within sd-wan - but its easier to use the SDK https://developer.cisco.com/docs/sdwan/#!sastre-sdk-overview - The SDK includes documentation that explains how to use the API, including the different endpoints, parameters, and return values.
Hope this helps.
05-30-2023 08:51 PM
Hi, Thanks for your Answer, im tryin opening the SDK and search for reference for request body but nothing help for this API /device/tools/servicepath/{deviceIP}. How do you find the API payload from chrome dev tools? is it JSON formatted and can i test it on postman? or do i need to change payload to JSON format?
Thanks
05-31-2023 01:11 AM
To capture JSON payload for REST calls in Chrome Developer Tools, follow these steps:
You can also copy the JSON payload to the clipboard by clicking the "Copy" button next to the "Request Payload" section.
Here are some additional tips for capturing JSON payloads for REST calls in Chrome Developer Tools:
Hope this helps!
05-31-2023 01:23 AM
Also if you want to know about the SDK there is a webinar happening here https://www.brighttalk.com/webcast/17628/583537?utm_source=CiscoDeveloper&utm_medium=brighttalk&utm_campaign=583537
05-31-2023 04:02 AM
Thank you for the explanation and the Webinar!
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