This URL upgrades the software on device.
Resource URL
PUT sensor/<sensor_id>/deploydevicesoftware/<swVersion>
Request Parameters
URL Parameter
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor ID | Number | Yes |
| Software version to upgrade | String | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| The ID of the upgrade process | String |
Example
Request
PUT https://<NSM_IP>/sdkapi/sensor/1001/deploydevicesoftware/9.1.5.9
Response
{
"RequestId": "1337547887180"
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 1106 | Invalid Sensor ID |
2 | 400 | 3010 | Software version provided does not exist for the Sensor : (<sensor>:<version>) |