v1

latestSwagger 2.02026-07-13137761.0 MB
Attribute group

Create a new attribute group

This endpoint allows you to create a new attribute group.

post/api/rest/v1/attribute-groups

Request body

codestring required

Attribute group code

sort_orderinteger

Attribute group order among other attribute groups

attributesstring[]

Attribute codes that compose the attribute group

Example request

{
  "code": "marketing",
  "sort_order": 4,
  "attributes": [
    "sku",
    "name",
    "description",
    "response_time",
    "release_date",
    "price"
  ],
  "labels": {
    "en_US": "Marketing",
    "fr_FR": "Marketing"
  }
}

Response

Created