Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:item:update_measure_units [09/11/2015 15:39] (current)
stan created
Line 1: Line 1:
 +====== Conversion ======
 +To convert an item to another measurement,​ use the command **item/​update_measure_units**:​
 +<code javascript>​
 +svc=item/​update_measure_units&​params={"​itemId":<​long>,​
 +       "​type":<​uint>,​
 +       "​flags":<​uint>​}
 +</​code>​
 +
 +===== 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 =====
 +<code javascript>​
 +{} /* empty object if execution successful, if not - error code */
 +</​code>​
 +
 +
  
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam