This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:item:update_profile_field [05/04/2016 14:22] stan [Profile fields] |
en:sidebar:remoteapi:apiref:item:update_profile_field [16/02/2021 08:23] (current) chdi [Profile fields] |
||
---|---|---|---|
Line 3: | Line 3: | ||
To update profile fields, use the command **item/update_profile_field**: | To update profile fields, use the command **item/update_profile_field**: | ||
<code javascript> | <code javascript> | ||
- | svc=item/update_custom_field¶ms={"itemId":<long>, | + | svc=item/update_profile_field¶ms={"itemId":<long>, |
"n":<text>, | "n":<text>, | ||
"v":<text>} | "v":<text>} | ||
Line 17: | Line 17: | ||
You can use following profile fields: | You can use following profile fields: | ||
- | ^ ID ^ Name ^ Description ^ | + | ^ Name ^ Description ^ |
- | | 1 | vehicle_type | Vehicle type | | + | | vehicle_class | [[https://sdk.wialon.com/wiki/en/sidebar/remoteapi/apiref/file/type_library|Vehicle type]] | |
- | | 2| vin | VIN | | + | | vin | VIN | |
- | | 3 | registration_plate | Registration plate | | + | | registration_plate | Registration plate | |
- | | 4 | brand | Brand | | + | | brand | Brand | |
- | | 5 | model | Model | | + | | model | Model | |
- | | 6 | year | Year | | + | | year | Year | |
- | | 7 | color | Color | | + | | color | Color | |
- | | 8 | cargo_type | Cargo type | | + | | engine_model | Engine model | |
- | | 9 | carrying_capacity | Carrying capacity, t | | + | | engine_power | Engine power, kW | |
- | | 10 | width | Width, mm | | + | | engine_displacement | Engine displacement, ccm | |
- | | 11 | height | Height, mm | | + | | primary_fuel_type | Primary fuel type | |
- | | 12 | depth | Depth, mm | | + | | cargo_type | Cargo type | |
- | | 13 | effective_capacity | Effective capacity | | + | | carrying_capacity | Carrying capacity, t | |
- | | 14 | gross_vehicle_weight | Gross vehicle weight | | + | | width | Width, mm | |
- | | 15 | axles | Axles | | + | | height | Height, mm | |
+ | | depth | Depth, mm | | ||
+ | | effective_capacity | Effective capacity | | ||
+ | | gross_vehicle_weight | Gross vehicle weight | | ||
+ | | axles | Axles | | ||
===== Response ===== | ===== Response ===== | ||
<code javascript> | <code javascript> | ||
[ | [ | ||
- | <long>, /* custom field ID */ | + | <long>, /* field ID */ |
{ | { | ||
- | "id":<long>, /* custom field ID */ | + | "id":<long>, /* field ID */ |
- | "n":<text>, /* name */ | + | "n":<text>, /* field name */ |
- | "v":<text> /* value */ | + | "v":<text> /* field value */ |
} | } | ||
] | ] |
|