Attributes
· Revision #2
Create Attribute Endpoint
Structure
Attribute
Name
|
Type
|
Description
|
Required
|
id |
int |
The id for the attribute |
No |
name |
string |
The name of the attribute (e.g., Small or Red) |
Yes |
display_name |
string |
The display name of the attribute |
No |
reference |
string |
The reference of the attribute |
No |
image |
object |
The Image of the attribute |
No |
tags |
array |
An array of Tag objects |
No |
Image
Name
|
Type
|
Description
|
Required
|
src |
string |
The source url of the image |
Yes |
Tag
Name
|
Type
|
Description
|
Required
|
name |
string |
The name of the tag (e.g., Small or Red) |
Yes |
group |
object |
The tag group, see Tag Group |
Yes |
Tag Group
Name
|
Type
|
Description
|
Required
|
name |
string |
The name of the tag group (e.g., Size or Colour) |
Yes |
Example Request
POST /api/attribute-groups/{id|name}/attributes
{
"name": "Medium",
"display_name": "Medium"
}
Example Response
{
"attribute": {
"id": 1
}
}