shop.feature.add

Adds a new product feature.

Parameters

  • code POST

    Feature code.

  • type POST

    Feature type. Available values: boolean, double, text, varchar, color.

  • name POST

    Feature name.

  • selectable POST

    Flag meaning that a feature can offer more than one value for selection on product-editing page.

  • multiple POST

    Flag meaning that more than one value of a feature can be selected on product-editing page.

  • count POST Optional

    Number of values of a feature supporting multiple values.

  • access_token GET

    API auth token obtained during the API authorization.

  • 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.