cancel
Showing results for 
Search instead for 
Did you mean: 

XXC Api to update AP description

XXC Api to update AP description

FranzS
New Contributor
Hi,

We are trying to use the API to update de description field of an AP.
Looking at the API documentation the following fields are required to PUT:
serialNumber, hardwareType and apName
But when trying to use the PUT call I get the following error:

 Validation of \"ip\" failed; ip_addr/gateway/netmask should be set or

 "Validation of \"radios\" failed; may not be null" 

All APs used DHCP to get their IP address and IpAddress is not a mandatory field, so how should I interpret this message?
Or are other fields also mandatory?

Thanks,
Franz

5 REPLIES 5

Miguel-Angel_RO
Valued Contributor II
Franz,
If you use the base API, you need to read the full config, modify what you want and push it back to the XCC.
Another way is to use the xccsdk library: https://test.pypi.org/project/pyxccsdk/ which makes things a little bit easier.
Mig
GTM-P2G8KFN