Menu
Create a new attribute group
Create a new attribute group
POST
/attribute-groupsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a new attribute group action (under AttributeGroups).
- Fill in the fields below, then reference the result from later steps as
{{createANewAttributeGroup.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"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
}
Response
Returns 201 with an object. Read it in later steps with {{createANewAttributeGroup.response.data.<field>}}.
{
"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.
Was this page helpful?