catalog.product.update
catalog.product.update(id, fields)
The method updates fields of commercial catalog products.
When successful, returns commercial catalog product resource in the response body.
Examples
Parameter | Type | Description |
---|---|---|
id | string | commercial catalog product number. |
fields | object | Fields, corresponding to the available list of getFieldsByFilter . |
Examples
BX24.callMethod( 'catalog.product.update', { id: 13, fields: { active: N, createdBy: 1, iblockId: 13, sort: 340 } }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024