For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create an attribute set

Creates a new attribute set.

  • The name must be unique across all attribute sets. Creating a set with a name that already exists is rejected.

  • Attribute configurations are not created here; add them with the Attribute Configurations endpoints (/attribute_config/). The attributeconfig_set field is read-only.

post
/attribute_set/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The payload accepted when creating or fully updating an attribute set.

namestring · max: 255Required

The unique name of the attribute set.

attribute_set_typestring · enumOptional

The type of an attribute set.

  • simple — a standard attribute set (default)
  • grouped — an attribute set used for grouped products
Possible values:
Responses
201

The attribute set was created.

application/json

A named group of attribute configurations assigned to products.

pkintegerRead-onlyOptional

The unique identifier of the attribute set.

namestring · max: 255Optional

The unique name of the attribute set.

attribute_set_typestring · enumOptional

The type of an attribute set.

  • simple — a standard attribute set (default)
  • grouped — an attribute set used for grouped products
Possible values:
post/attribute_set/
POST /api/remote/1/attribute_set/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "name": "text",
  "attribute_set_type": "simple"
}
{
  "pk": 15,
  "name": "Apparel",
  "attribute_set_type": "simple",
  "attributeconfig_set": []
}

Last updated

Was this helpful?