- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to use Postman to modify ntp-servers option42 on a network?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 08:18 AM - edited 02-27-2023 08:20 AM
I need to configure a NTP server on a large number of subnets, so I am planning to leverage Postman to achieve this, but I am having trouble to find the corrent URL.
Here is what I used. https://{{grid_master}}/wapi/v2.10.5/network?network={{subnet}}/default
and the body is:
"options": [
{
"name": "ntp-servers",
"num": 42,
"value": "{{nep-server}}",
"vendor_class": "DHCP"
}
]
but I got this error.
Re: How to use Postman to modify ntp-servers option42 on a network?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 08:31 AM
Hey Leo,
Your content type should be 'application/json'. In case of Postman when you pass the body as raw data make sure you select JSON from the dropdown at the end.
Re: How to use Postman to modify ntp-servers option42 on a network?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2023 09:11 AM
Thanks, Shukran.
That fixed it. Is there a way to avoid of put _ref_ in the PUT request?
Leo