Admin Catalog: Attribute Families

Update an attribute family

Updates an attribute family. Inside attribute_groups, items keyed by numeric id update existing groups; items keyed by group_* create new groups; omitted existing ids are deleted.

put/catalog/families/{id}

Request

Path parameters

idinteger required
Example:4

Family ID.

Request body

codestring required
namestring required
attribute_groupsobject

Example request

{
  "code": "electronics",
  "name": "Electronics (updated)",
  "attribute_groups": {
    "11": {
      "code": "general",
      "name": "General",
      "column": 1,
      "position": 1,
      "custom_attributes": [
        {
          "id": 1,
          "position": 1
        }
      ]
    },
    "group_new_1": {
      "code": "pricing",
      "name": "Pricing",
      "column": 2,
      "position": 2,
      "custom_attributes": [
        {
          "id": 11,
          "position": 1
        }
      ]
    }
  }
}

Response

Family updated.

Changes

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