Skip to main content

Attribute Group API

Use the REST API to interact with EverShop product attribute group.

Create an attribute group

Use this endpoint to create an attribute group.

Request Schema (application/json)
Field NameField TypeRequired
group_namestringYes
POST/api/attributeGroups
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attributeGroups
Sample Of Response
{
"data": {
"attribute_group_id": 49,
"uuid": "dcc16767a5c311edb46b60d819134f39",
"group_name": "Attribute Group Name",
"created_at": "2023-02-06 09:13:35",
"updated_at": "2023-02-06 09:13:35"
}
}

Update an attribute group

Use this endpoint to update an attribute group.

Request Schema (application/json)
Field NameField TypeRequired
group_namestringYes
PATCH/api/attributeGroups/{id}
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attributeGroups/{id}
Sample Of Response
{
"data": {
"attribute_group_id": 50,
"uuid": "dcc16767a5c311edb46b60d819134f39",
"group_name": "Attribute Group Name",
"created_at": "2023-02-06 09:13:35",
"updated_at": "2023-02-06 09:13:35"
}
}

Delete an attribute group

Use this endpoint to delete an attribute group.

Request Schema (application/json)
No request body required
DELETE/api/attributeGroups/{id}
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attributeGroups/{id}
Sample Of Response
{
"data": {
"attribute_group_id": 50,
"uuid": "dcc16767a5c311edb46b60d819134f39",
"group_name": "Attribute Group Name",
"created_at": "2023-02-06 09:13:35",
"updated_at": "2023-02-06 09:13:35"
}
}