Posted on October 6, 2020 9:26 pm
 |  Asked by Ondřej Brabec
 |  47 views
RESOLVED
0
0
Print Friendly, PDF & Email

Hello everybody,

I would like to ask if anyone is successfully using the API for configuration? For example, I am currently interested in changing the PSK for a specific profile. I followed the API reference for SSID Profile exactly, see https://apidocs.wifi.arista.com/ssid-profile/
I am able to connect, list the SSID profiles, but the moment I want to change the PSK for a specific profile, I still get HTTP status code 400, Incorrect JSON format.

Again, I followed the API reference for POST, but still without success. I performed JSON validation and it went well.

Would anyone provide me with his profile editing code?

Thank you very much.

Ondrej

0
Posted by Sreelekha
Answered on October 8, 2020 6:47 am

Hi Ondrej,

Thanks for writing to us.

I have tried this on my lab and could change the passphrase successfully. Server Version: 8.9.0, method POST

https://WM-address/new/webservice/V5/configuration/ssidprofiles

I have attached the json body i used as a pdf below. Can you please share below details to check the failure in your case?

1. WM version
2. API URL used
3. Request body Json

Cheers!
Sreelekha

Attachments:

Post your Answer

You must be logged in to post an answer.