Documentation

catalog.section.add

Scope: catalog Permissions to execute: for all

catalog.section.add(fields)

The method adds section into collection of commercial catalog sections.

When successful, returns commercial catalog section resource in the response body.

Parameters

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

Examples

BX24.callMethod(
    'catalog.section.add', 
	{
        fields: {
			  iblockId: 5,
			  iblockSectionId: 3,
			  name: 'News',
			  code: 'news'
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });
© «Bitrix24», 2001-2024