catalog.catalog.update
Scope: catalog Permissions: all
catalog.catalog.update(id, fields)
The method updates commercial catalog fields.
When successful, returns commercial catalog resource in the response.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | Commercial catalog number. |
fields | object | Fields, corresponding to the available list of fields. You need to specify iblockId with product iblock values to update properties in 'fields'. Otherwise, properties won't be updated. |
Examples
BX24.callMethod( 'catalog.catalog.update', { id: 13, fields: { yandexExport: Y } }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024