Attempting to automate creating network objects and groups using Meraki API and python
I am developing a python application to automate creating FQDN network policy objects and policy groups and then load the newly created objects into the new group(s). My application works to create the objects and the groups, but I am uncertain which path is needed to put the new objects into the new group(s). From what I can see from the documentation for the API I need to use https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects/groups/{group_id} load the objects. Obviously, group_id is the variable I am using to store the object id of the current group I am working with. I have some error checking in my code so I can validate the obj id for the group I want is what is getting passed into the variable, but when running the code, I get a page not found error. Is there a different path I should be using? The other paths I am using are https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects to create the network policy object and https://api.meraki.com/api/v1/organizations/{org_id}/policyObjects/groups to create the groups.
Thanks Philip, I might give that a try. I was using ChatGPT as a sounding board, but it's information it was using is a bit dated. It was completely wrong with the API paths.