Documentation

catalog.productProperty.update

Scope: catalog Permissions to execute: for all

catalog.productProperty.update(id, fields)

Method updates fields for product or SKU property.

Parameters

ParameterТип Description
idstring Product or SKU property ID.
fieldsobject Fields, matching to available list of fields.


Examples

BX24.callMethod(
	'catalog.productProperty.update',
	{
		id: 128,
		fields: {
			isRequired: "Y",
			iblockId: 16,
			name: "Size",
			propertyType: "L"
		}
	},
	function(result)
	{
		if(result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
	}
);

© «Bitrix24», 2001-2024
Up