Admin Catalog: Attributes

Update an attribute option

Changed on

Partially updates the given option. Only supplied fields are changed; translations merge per-locale.

put/catalog/attributes/{attributeId}/options/{optionId}

Request

Path parameters

attributeIdinteger required
Example:12

Attribute ID.

optionIdinteger required
Example:45

Option ID.

Request body

admin_namestring
sort_orderinteger
swatch_valuestring nullable
swatch_altstring nullable
swatch_file_namestring nullable
localestring
translationsobject

Example request

{
  "admin_name": "Merino Wool",
  "sort_order": 1,
  "swatch_alt": "Wool texture",
  "swatch_file_name": "wool",
  "locale": "en",
  "translations": {
    "en": {
      "label": "Merino Wool"
    },
    "fr": {
      "label": "Laine Mérinos"
    }
  }
}

Response

Option updated. 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