cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot update Switch Ports Configuration.

Highlighted
Just browsing

Cannot update Switch Ports Configuration.

Hello,

 

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:

 

PUT v0/devices/{serial-num-of-switch}/switchPorts/1

 

And the data I am sending  is :

 

{
"vlan": 12,
"tags": "test"

}

 

Anything that I am missing to get this working?

 

Thanks in advance.

 

 

 

4 REPLIES
Just browsing

Re: Cannot update Switch Ports Configuration.

 

Update to issue. I was able to update the port configuration via postman... So wondering why my API apps are not working..

 

Getting noticed

Re: Cannot update Switch Ports Configuration.

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)?

Kind of a big deal

Re: Cannot update Switch Ports Configuration.

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. 

Adam R MS | CISSP, CISM, VCP, MCITP, CCNP, ITILv3, CMNO
If this was helpful click the Kudo button below
If my reply solved your issue, please mark it as a solution.
Just browsing

Re: Cannot update Switch Ports Configuration.

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'.

 

Thanks.