Documentation

catalog.product.service.add

Scope: catalog Permissions: all

catalog.product.service.add(fields)

Method adds a service.

Parameters

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

Examples

BX24.callMethod(
    'catalog.product.service.add', 
    {
        fields:
        {
            active: 'Y',
            quantity: 1,
            name: 'Service, created via REST',
            measure: 5,
            iblockId: 15,
            iblockSectionId: 17
        }
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});
© «Bitrix24», 2001-2024