I have used 2 different languages( merakiapi.py and c# ) to update the port configuration on a switch ( tags and vlan ) and although the return status is 200, the configuration is not changed. I am sending the following information:
And the data I am sending is :
Anything that I am missing to get this working?
Thanks in advance.
Update to issue. I was able to update the port configuration via postman... So wondering why my API apps are not working..
Are you certain that you're getting a 200 response? Some Meraki API calls will respond with a redirect. Not all libraries default to following redirects and some will even follow the redirect as a GET rather than a PUT or POST.
Do you want to share a bit of your python code (make sure to remove API key and any device serial numbers or network ids)?
Postman just uses the API so possibly a difference in the code/calls you are using? You can generate code from Postman to compare and verify.
I have discovered the issue the Content-Type was not set to 'application/json'.
Still does not explain why I get status 200 when Content-Type is set to 'text/plain'.