To upgrade the software image on the device making the REST API calls, a remote device, or rf-domain:
Note
You must forward the auth_token as a cookie with each API call.Note
The WiNG API, in its current form does not differentiate between PUT and POST methods. The API behaves the same way for both requests.Sample Requests with Different Possible Input Parameters
curl -X POST --cookie auth_token=$cookie http://10.1.1.1/rest/v1/act/upgrade -d '{"rf-domain":"guest-domain","url":"tftp://10.1.1.101/VX9000.img"}'
curl -X POST --cookie auth_token=$cookie http://10.1.1.1/rest/v1/act/upgrade -d '{"device":"08-00-27-96-5F-EA","dhcp-vendor-options":"True"}'
Sample Response (200 OK)
{ "return_code": 0 }