younifyd
Menu

Get an attribute group

Get an attribute group

GET/attribute-groups/{attributeGroupName}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get an attribute group action (under AttributeGroups).
  3. Fill in the fields below, then reference the result from later steps as {{getAnAttributeGroup.response.data}}.

Request

Path parameters

attributeGroupNamestringrequired

An attribute group unique name.

Response

Returns 200 with an object. Read it in later steps with {{getAnAttributeGroup.response.data.<field>}}.

idinteger

The ID of the attribute group created by SCAYLE.

namestring

A name that uniquely identifies an attribute group. Please ensure the input is URL-encoded, avoid using special characters like `%`, `&`, `#` directly.

frontendNameobject

The localized attribute group name. It must include at least the default language that is configured in SCAYLE.

typestring

The attribute type of the attribute group.

One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList

clusterstring

The attribute group type.

isSharedboolean

Specifies whether an attribute value is shared among multiple entities or if each entity has its own unique value. It's important to note that attributes of advanced types cannot be shared, so 'isShared' must always be set to false in such cases.

simpleValueTypestring

Value type. It can only be set for non-shared simple attribute groups and defaults to 'text' if not specified.

One oftextlongtextintegerdateattributeattributeGroup

simpleValueTypeConfigoneOf
levelstring

Defines the attribute group level, specifying the type of entity it is applicable to.

One ofmasterproductvariantimagebrandcategoryvideo

structureobject

A structure, which describes advanced attribute values. Mandatory for the advanced type.

shopCountriesarray<object>

A list of shop countries the attribute group is valid for. The attribute group is valid for all shop countries if the field is omitted.

shopKeystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem.

countryCodestringrequired

ISO 3166 alpha 2 country code.

isOverridablePerShopboolean

Defines if shop-specific attribute values are allowed for the given attribute group.

Default false

isDifferentiatingboolean

If an attribute group is differentiating, then every entity must have a unique attribute value. This configuration is not applicable to the advanced type, neither to attribute groups marked as isShared=false.

Default false

groupstring

It is used for grouping the display of attribute groups in the Panel.

json
{
  "name": "color",
  "frontendName": {
    "de_DE": "Farbe",
    "en_GB": "Color"
  },
  "type": "simple",
  "isShared": true,
  "level": "product",
  "id": 1,
  "cluster": "material",
  "simpleValueType": "text",
  "simpleValueTypeConfig": null,
  "structure": {
    "group": {
      "type": "attributeGroup",
      "attributeGroupName": "Obermaterial"
    },
    "components": {
      "type": "array",
      "items": {
        "fraction": {
          "type": "integer"
        },
        "unit": {
          "type": "attribute",
          "attributeGroupName": "unit",
          "attributeName": "%"
        },
        "material": {
          "type": "attributeGroup",
          "attributeGroupName": "material"
        }
      }
    }
  },
  "shopCountries": [
    {
      "shopKey": "ms",
      "countryCode": "DE"
    }
  ],
  "isOverridablePerShop": true
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.