POST v1/insDeviceFuelNorm
Метод збереження норми пального авто.
Request Information
URI Parameters
None.
Body Parameters
DeviceFuelNormNew| Name | Description | Type | Additional information |
|---|---|---|---|
| deviceID |
ID пристрою |
integer |
Required |
| type |
Тип норми пального |
DeviceFuelNormType |
Required |
| value |
Значення витрити пального, л |
decimal number |
Required |
| speedFrom |
Значення швидкість 'від' (для типу витрат по швидкості) км./год. |
integer |
None. |
| speedTo |
Значення швидкість 'до' (для типу витрат по швидкості) км./год. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"deviceID": 1,
"type": 0,
"value": 2.1,
"speedFrom": 1,
"speedTo": 1
}
Response Information
Resource Description
ModelIns| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
ID новоствореного об'єкта |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1
}