Admin Catalog: Attributes

Update an attribute

Updates an attribute. The code field cannot be changed (returns 422 if a different code is supplied). Changing type is refused when product attribute values exist.

put/catalog/attributes/{id}

Request

Path parameters

idinteger required
Example:50

Attribute ID.

Request body

codestring required
admin_namestring required
typestring required
is_filterableboolean
translationsobject
optionsobject[]

Full replacement list. Items with id are updated; without id are inserted; omitted ids are deleted.

Example request

{
  "code": "material",
  "admin_name": "Material (updated)",
  "type": "select",
  "is_filterable": true,
  "translations": {
    "en": {
      "name": "Material (updated)"
    },
    "fr": {
      "name": "Matière (mis à jour)"
    }
  }
}

Response

Attribute updated. Returns the full attribute detail.

Changes

No recorded changes to this operation across all 8 revisions of this API.