younifyd
Menu

Get attribute groups for given filters

Get attribute groups for given filters

GET/attribute-groups

Use it in a workflow

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

Request

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

sortstring

Sort by the provided column.

One ofidDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

filters[level]string

Filter attribute groups by level.

One ofproductvariantmasterimagebrandcategory

filters[type]string

Filter attribute groups by type.

One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList

Response

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

entitiesarray<object>
idinteger

The ID of the attribute group created by SCAYLE.

namestringrequired

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

frontendNameobjectrequired

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

typestringrequired

The attribute type of the attribute group.

One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList

clusterstring

The attribute group type.

isSharedbooleanrequired

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
levelstringrequired

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>2 fields

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.

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.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "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
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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