docs
  1. Resources
  2. Attribute Groups
  3. Create A New Attribute Group

Create a new attribute group

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

AttributeGroups

​

Attribute Groups

AttributeGroups Operations

Create a new attribute group

​

This endpoint is used to create an attribute group. For more details, refer to the Developer Guide.

Once a group is created, you can add new attributes to the following entities:

Body·

required
application/json
  • The localized attribute group name. It must include at least the default language that is configured in SCAYLE.

    Properties: 1
  • 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.

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

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

  • The attribute type of the attribute group.

    values
    simplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList
  • The attribute group type.

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

  • 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.

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

  • 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.

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

    values
    textlongtextintegerdateattributeattributeGroup
    • The name of the attribute group whose attributes can be used as values.

Responses

  • application/json
  • application/json
  • application/json
Request Example for post/attribute-groups
//Simple Attribute Group

let newAttributeGroup = {
  "name": "color",
  "frontendName": {
      "de_DE": "Farbe",
      "en_GB": "Color"
  },
  "group": "someName",
  "type": "simple",
  "cluster": "material",
  "isShared": true,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: newAttributeGroup});
let createdAttributeGroup = response.body;

//Simple List Attribute Group

let newAttributeGroup = {
  "name": "season",
  "frontendName": {
      "de_DE": "Saison",
      "en_GB": "Season"
  },
  "group": "someName",
  "type": "simpleList",
  "cluster": "material",
  "isShared": true,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: newAttributeGroup});
let createdAttributeGroup = response.body;

//Localized String Attribute Group

let newAttributeGroup = {
  "name": "brand",
  "frontendName": {
      "de_DE": "Marke",
      "en_GB": "Brand"
  },
  "group": "someName",
  "type": "localizedString",
  "cluster": "material",
  "isShared": true,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: newAttributeGroup});
let createdAttributeGroup = response.body;

//Localized String List Attribute Group

let newAttributeGroup = {
  "name": "notes",
  "frontendName": {
      "de_DE": "Hinweise",
      "en_GB": "Notes"
  },
  "group": "someName",
  "type": "localizedStringList",
  "cluster": "material",
  "isShared": false,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: newAttributeGroup});
let createdAttributeGroup = response.body;

//Advanced List Attribute Group

let newAttributeGroup = {
  "name": "material_composition_textile",
  "frontendName": {
      "de_DE": "Materialzusammensetzung",
      "en_GB": "Material Composition"
  },
  "type": "advancedList",
  "cluster": "material",
  "isShared": false,
  "level": "product",
  "structure": {
      "group": {
          "type": "attributeGroup",
          "attributeGroupName": "overmaterial"
      },
      "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
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: newAttributeGroup});
let createdAttributeGroup = response.body;

//Non-shared Simple Attribute Group with Integer Value Type

let simpleNonSharedAGWithValueTypeOfInteger = {
  "name": "simpleNonSharedAGWithValueType",
  "frontendName": {
      "de_DE": "deName",
      "en_GB": "enName"
  },
  "group": "someName",
  "type": "simple",
  "cluster": "material",
  "simpleValueType": "integer",
  "isShared": false,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: simpleNonSharedAGWithValueTypeOfInteger});
let createdAttributeGroup = response.body;

//Non-shared Simple Attribute Group with Attribute Value Type

let simpleNonSharedAGWithValueTypeOfAttribute = {
  "name": "simpleNonSharedAGWithValueType",
  "frontendName": {
      "de_DE": "deName",
      "en_GB": "enName"
  },
  "group": "someName",
  "type": "simple",
  "cluster": "material",
  "simpleValueType": "attribute",
  "simpleValueTypeConfig": {
      "attributeGroupName": "color",
      "attributeName": "red"
  },
  "isShared": false,
  "level": "product"
};

let response = await adminApi.apis.AttributeGroups.createAttributeGroup({}, {requestBody: simpleNonSharedAGWithValueTypeOfAttribute});
let createdAttributeGroup = response.body;

{
  "id": 1,
  "name": "color",
  "frontendName": {
    "de_DE": "Farbe",
    "en_GB": "Color"
  },
  "type": "simple",
  "cluster": "material",
  "structure": null,
  "isShared": true,
  "level": "product",
  "group": "someName",
  "shopCountries": null,
  "isOverridablePerShop": false,
  "isDifferentiating": false
}

Models

​
​
​

Last updated: December 02, 2026