update_profile_field

The update_profile_field function is used to update profile fields.

Copied!
svc=item/update_profile_field&params={"itemId":<long>,
				     				 "n":"<text>",
				     				 "v":"<text>"}

Parameters

NameDescription
itemIdItem ID.
nProfile field name. 
vProfile field value.

You can use the following profile fields:

NameDescription
vehicle_typeVehicle type.
vehicle_classVehicle class.
vinVIN.
registration_plateRegistration plate.
brandBrand.
modelModel.
yearYear.
colorColour.
engine_modelEngine model.
engine_powerEngine power, kW.

engine_displacement

Engine displacement, ccm.
primary_fuel_typePrimary fuel type.
co2_emissionAverage CO2 emission.
cargo_typeCargo type
carrying_capacityCarrying capacity, t.
widthWidth, mm.
heightHeight, mm.
depthDepth, mm.
effective_capacityEffective capacity.
gross_vehicle_weightGross vehicle weight.
axlesAxles.

Returned result

Copied!
[
	<long>,		/* field ID */
	{
		"id":<long>,	/* field ID */
		"n":"<text>",	/* field name */
		"v":"<text>"	/* field value */
	}
]

Possible error codes:

CodeDescription
7Failed to fetch item with desired ACL (ADF_ACL_ITEM_VIEW_CFIELDS, ADF_ACL_ITEM_EDIT_CFIELDS).
6Undefined error.
3AVL server item not found or type library plugin not enabled. 
4Wrong input parameters. 
Download PDF file
Download Word document

See also