shop.feature.add

Adds a new product feature. The 'settings' access right is required.

Parameters

  • code POST

    Feature identifier.

  • type POST

    Feature type. Available values are 'varchar', 'double', 'text', 'date', 'dimension', 'range', '2d', '3d', 'boolean', 'divider', 'color'.

  • name POST

    Feature name.

  • selectable POST

    Flag (0 or 1) meaning that a feature can offer more than one value for selection on product-editing page.

  • multiple POST

    Flag (0 or 1) meaning that more than one value of a feature can be selected on product-editing page.

  • available_for_sku POST Optional

    Flag (0 or 1) denoting whether feature’s values can be edited in product variants’ properties.

  • default_unit POST Optional

    Default measurement unit.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Error codes

  • invalid_request

    Invalid formed request. Additional information about the error is available in error_description parameter.

  • access_denied

    Access to the specified API method for the current token is denied.

  • invalid_method

    Unknown API method.