07-06-2021 01:22 AM
Hi!
I'm trying to create a network within my organization through the python API but I get this message and I cannot figure why is this method not recognized as it is in the documentation.
I have tried to update my pip installer, and upgrade the meraki library but no better results.
I am creating/updating organizations well with my code but I cannot create a Network, and that is a problem.
Here is my code for the creation of network :
Thanks in advance for your answers!
Solved! Go to Solution.
07-06-2021 03:01 AM
Hello hcoq,
Nice method you got there!
I believe you're running into an error here because the call is dashboard.organizations instead of dashboard.networks (Naturally because we are creating this network at the org level).
Here's a link to the API endpoint:
https://developer.cisco.com/meraki/api-v1/#!create-organization-network
I may be getting ahead of myself here, but you may run into further errors because you seem to be inputting net_type and tags as strings but the expected input for this is a list. You can use the split() method to turn a string to a list.
Hope this helps, everything else looks great!
07-06-2021 03:01 AM
Hello hcoq,
Nice method you got there!
I believe you're running into an error here because the call is dashboard.organizations instead of dashboard.networks (Naturally because we are creating this network at the org level).
Here's a link to the API endpoint:
https://developer.cisco.com/meraki/api-v1/#!create-organization-network
I may be getting ahead of myself here, but you may run into further errors because you seem to be inputting net_type and tags as strings but the expected input for this is a list. You can use the split() method to turn a string to a list.
Hope this helps, everything else looks great!
07-06-2021 03:06 AM
Thank you, that solves my problem! I have been consulting the older documentation so I think this is the main source of my problems. I did get that tags error so it's corrected all right now 🙂
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