Create an attribute set
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 · enumOptionalPossible values:
The type of an attribute set.
simple— a standard attribute set (default)grouped— an attribute set used for grouped products
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 · enumOptionalPossible values:
The type of an attribute set.
simple— a standard attribute set (default)grouped— an attribute set used for grouped products
400
The request contains invalid or missing data.
application/json
401
Authentication credentials were not provided or are invalid.
application/json
403
The authenticated user does not have administrator privileges.
application/json
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?

