Conversion

To convert an item to another measurement, use the command item/update_measure_units:

svc=item/update_measure_units&params={"itemId":<long>,
				      "type":<uint>,
				      "flags":<uint>}

Parameters

Name Description
itemId item ID
type target measurement (0 – metric,1 – U.S.,2 – imperial)
flags 0 – set measurement, 1 – convert values and set measurement

Response

{}	/* empty object if execution successful, if not - error code */