Documentation

catalog.productImage.delete

Scope: catalog Permissions to execute: for all

catalog.productImage.delete(productId, id)

Method deletes image from product or SKU.

Returns true on success in response.

Parameters

ParameterType Description
productIdstring Product or SKU ID. Required parameter.
idinteger Image ID. Required parameter.

Examples

BX24.callMethod(
    'catalog.productImage.delete', 
    {
      productId: 1,
      id: 1
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024