- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct syntax for API call
Hey guys,
Trying to use this API call:
https://developer.cisco.com/meraki/api-v1/#!unbind-network
Need some guidance on how to include the optional retainConfigs: true boolean. I've tried a variety of different formats, all of which are leading to different errors. I'm sure there's a correct way to enter this, I just have no idea what it is.
Here is what I'm currently working with:
dashboard.networks.unbindNetwork(
network_id, { "retainConfigs": True }
)
If someone who's used optional params before could offer some guidance on the correct syntax for this API call, it would be much appreciated. Thank you.
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @AutomationDude,
You'll want to pass the parameters as illustrated:
dashboard.networks.unbindNetwork(networkId, retainConfigs=True)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @AutomationDude,
You'll want to pass the parameters as illustrated:
dashboard.networks.unbindNetwork(networkId, retainConfigs=True)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @JasonM,
I did try that as well, but it results in the following error:
TypeError: unbindNetwork() got an unexpected keyword argument 'retainConfigs'
Any ideas on what I could be doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nevermind, I just had to update my SDK. Excuse my stupidity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No worries! Glad you got it working.
