Documentation

catalog.measure.add

Scope: catalog Permissions: all

catalog.measure.add(fields)

Method adds a unit of measurement.

Parameters

ParameterType Description
fieldsobject Fields, matching to the available list of fields.

Examples

BX24.callMethod(
    'catalog.measure.add', 
	{
        fields: {
			  code: "kg",
			  measureTitle: "kg"
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });

© «Bitrix24», 2001-2024