Documentation

catalog.product.service.update

Scope: catalog Permissions: all

catalog.product.service.update(id, fields)

Method for updating service fields.

Parameters

ParameterType Description
idinteger Service ID.
fieldsobject Fields matching to the available list of fields getFieldsByFilter .


Examples

BX24.callMethod(
    'catalog.product.service.update', 
    {
        id : 44,
        fields:
        {
            active: 'N',
            iblockId: 15,
        }
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024
Up