POST v1/updDevice
Request Information
URI Parameters
None.
Body Parameters
DeviceUpd| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| name | string |
Required |
|
| DRPMinFilling | integer |
Required |
|
| DRPMinUnFilling | integer |
Required |
|
| filterType | DeviceFilterType |
Required |
|
| description | string |
None. |
|
| speedFilter | byte |
None. |
|
| mileAngeFactor | decimal number |
None. |
|
| code1C | string |
None. |
|
| settings | Dictionary of DeviceSettingsType [key] and Object [value] |
None. |
|
| fuelNorms | Collection of DeviceFuelNorm |
None. |
|
| regionIDs | Collection of integer |
None. |
|
| workingHours | Collection of DeviceWorkingHours |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"DRPMinFilling": 3,
"DRPMinUnFilling": 4,
"filterType": 1,
"description": "sample string 5",
"speedFilter": 64,
"mileAngeFactor": 1.1,
"code1C": "sample string 6",
"settings": {
"FuelNorm": {}
},
"fuelNorms": [
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1
},
{
"id": 1,
"deviceID": 2,
"type": 0,
"value": 3.1,
"speedFrom": 1,
"speedTo": 1
}
],
"regionIDs": [
1,
2
],
"workingHours": [
{
"id": 1,
"deviceID": 2,
"weekDay": 64,
"timeFrom": 4,
"timeTo": 5
},
{
"id": 1,
"deviceID": 2,
"weekDay": 64,
"timeFrom": 4,
"timeTo": 5
}
]
}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.