update_profile_field
The update_profile_field function is used to update profile fields.
svc=item/update_profile_field¶ms={"itemId":<long>,
"n":"<text>",
"v":"<text>"}
Parameters
Name | Description |
---|---|
itemId | Item ID. |
n | Profile field name. |
v | Profile field value. |
You can use the following profile fields:
Name | Description |
---|---|
vehicle_type | Vehicle type. |
vehicle_class | Vehicle class. |
vin | VIN. |
registration_plate | Registration plate. |
brand | Brand. |
model | Model. |
year | Year. |
color | Colour. |
engine_model | Engine model. |
engine_power | Engine power, kW. |
engine_displacement | Engine displacement, ccm. |
primary_fuel_type | Primary fuel type. |
co2_emission | Average CO2 emission. |
cargo_type | Cargo type |
carrying_capacity | Carrying capacity, t. |
width | Width, mm. |
height | Height, mm. |
depth | Depth, mm. |
effective_capacity | Effective capacity. |
gross_vehicle_weight | Gross vehicle weight. |
axles | Axles. |
Returned result
[
<long>, /* field ID */
{
"id":<long>, /* field ID */
"n":"<text>", /* field name */
"v":"<text>" /* field value */
}
]
Possible error codes:
Code | Description |
---|---|
7 | Failed to fetch item with desired ACL (ADF_ACL_ITEM_VIEW_CFIELDS, ADF_ACL_ITEM_EDIT_CFIELDS). |
6 | Undefined error. |
3 | AVL server item not found or type library plugin not enabled. |
4 | Wrong input parameters. |