Admin Catalog: Attributes

Add an option to a select/multiselect/checkbox attribute

Changed on

Creates a new option for the given attribute. Only allowed when the attribute type is select, multiselect, or checkbox.

post/catalog/attributes/{attributeId}/options

Request

Path parameters

attributeIdinteger required
Example:12

Attribute ID.

Request body

admin_namestring required
sort_orderinteger
swatch_valuestring nullable
swatch_altstring nullable
swatch_file_namestring nullable
localestring
translationsobject

Example request

{
  "admin_name": "Wool",
  "sort_order": 2,
  "swatch_alt": "Wool texture",
  "swatch_file_name": "wool",
  "locale": "en",
  "translations": {
    "en": {
      "label": "Wool"
    },
    "fr": {
      "label": "Laine"
    }
  }
}

Response

Option created. Returns the full attribute detail.

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property