Clear the Device Upgrade History

To clear the device upgrade history 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 GET and POST methods to access the /act/clear-device-upgrade-history/ URI and clear the upgrade history.

    Sample Requests with Different Possible Input Parameters

    curl -X GET --cookie auth_token=$cookie http://172.16.0.16/rest/v1/act/clear-device-upgrade-history 
    curl -X POST --cookie auth_token=$cookie http://172.16.0.16/rest/v1/act/clear-device-upgrade-history 
    -d
      '{"rf-domain":"guest-domain"}'
        
    curl -X POST --cookie auth_token=$cookie http://172.16.0.16/rest/v1/act/clear-device-upgrade-history 
    -d
       '{"device":"08-00-27-96-5F-EA"}'
    curl -X POST --cookie auth_token=$cookie http://172.16.0.16/rest/v1/act/clear-device-upgrade-history
    -d
        '{"scope":"noc"}'

    Sample Response (200 OK)

    {    
    "return_code": 0
    }