This URL downloads the device software from the server.
Resource URL
PUT /devicesoftware/import/automatic
Request Parameters
Payload request parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Device model for which the download is done | String | Yes |
| Software version to download | String | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Status returned by download | Number |
Example
PUT https://<NSM_IP>/sdkapi/ devicesoftware/import/automatic
Request
Payload:
{
"model" : "IPS-NS9500",
"version" : "10.1.5.190"
}
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 400 | 1001 | Internal error |
2 | 400 | 3008 | Device model and software to update is mandatory |
3 | 400 | 3009 | Device model provided does not exist : <model> |
4 | 400 | 3010 | Software version provided does not exist for the Sensor : ( <model>. <version>) |
5 | 400 | 3011 | Software version provided is already present in the Manager. |