update_measure_units
The update_measure_units function is used to change the measurement system of an item.
svc=item/update_measure_units¶ms={"itemId":<long>,
"type":<uint>,
"flags":<uint>}
Parameters
| Name | Description |
|---|---|
| itemId | Item ID. |
| type | Target measurement system:
|
| flags |
|
Returned result
If the request is successful, an empty JSON is returned.
{ }
If not, an error code is returned. Possible error codes:
| Code | Description |
|---|---|
| 7 | Failed to fetch the item with the desired ACL (ADF_ACL_ITEM_EDIT_OTHER), failed to fetch the user or "not a top user" error. |
| 6 | New type == old type or undefined error. |
| 4 | Wrong input parameters. |