Update the Software Image

To upgrade the software image on the device making the REST API calls, a remote device, or rf-domain:

  1. Log in to the REST API server using valid management user credentials.
    Note

    Note

    You must forward the auth_token as a cookie with each API call.
  2. Use the POST method to access the /act/upgrade/ URI and update the software image.
    Note

    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
    }