update_retranslation_property
To update the retranslation_property of the unit, use the unit/update_retranslation_property method:
svc=unit/update_report_settings¶ms={
"itemId": <long>,
"params": {
"speedLimit": <uint>,
"maxMessagesInterval": <uint>,
"dailyEngineHoursRate": <uint>,
"urbanMaxSpeed": <uint>,
"mileageCoefficient": <double>,
"fuelRateCoefficient": <double>,
"maxDistanceBetweenCoordinates": <uint>,
"maxMessagesSpeed": <uint>,
"speedingTolerance": <uint>,
"speedingMinDuration": <uint>,
"speedingMode": <uint>
}
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
route_data | Object with route parameters. |
vehicle_type | Type of vehicle. Possible values:
|
route | Represent route. |
Example
Below is an example of the unit/update_retranslation_property request:
svc=unit/update_retranslation_property¶ms={"itemId":814743,"route_data":{"vehicle_type":"bus","route":"Somebody%20told%20me"}}
Response
If the request is completed successfully, a response in the following format is returned:
{
"vehicle_type": "bus",
"route": "Somebody%20told%20me"
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Wrong input parameters. |
6 | Failed to update parameters. |
7 | No ADF_ACL_ITEM_EDIT_OTHER access right to the unit. |