Policy Object Creation - API

Meraki-JoshW
New here

Policy Object Creation - API

Hello, 

 

It appears there was some kind of update recently that broke the creation of Policy Objects with the API provided by Meraki. I have been using postman to create several Policy Objects. On 11/10 I was able to create over 100 different Policy Objects, however when I used the exact same code on 11/11 I was given an error

 

There was an error in evaluating the test script:  Error: Unexpected token '<' at 1:1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o ^

 

Whether this is a problem within Postman or the code provided by Meraki I do not know. Has anyone else run into this issue? Is there something I can do to resolve this on my end that I am not seeing? I am very new to this, but this appears to be a new issue as it was working one day and not the next day. 

3 Replies 3
alemabrahao
Kind of a big deal
Kind of a big deal

Why don't you use Python Script?  Anyway, what API version are you using? Try this one:

 

 

https://developer.cisco.com/meraki/api-v1/#!create-organization-policy-object

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

That is the one I have been using. Even when I try to use it from that site it fails. I am using version 1.27.0 which should be the latest. 

Have you checked your Token? Try generating a new token.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Get notified when there are additional replies to this discussion.