Documentation

sale.propertyVariant.update

sale.propertyVariant.update(id, fields)

The method updates fields of property variant.

When successful, returns property variant resource in response body.

Parameters

ParameterType Description
idstring Number of property variant.
fieldsobject Fields, corresponding to available list of fields.


Examples

BX24.callMethod(
    'sale.propertyVariant.update', 
    {
	  id: 75,
	  fields: {
	    name: 'Size',
	    value: 'S',
	    }
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});


© «Bitrix24», 2001-2024
Up