Skip to main content
⭐️ If you love EverShop, give it a star on GitHub. Thanks!

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/attribute-groups
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attribute-groups
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/attribute-groups/{id}
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attribute-groups/{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/attribute-groups/{id}
curl
-H "Accept: application/json"
-H "Cookie: asid=<your admin cookie>"
https://<your domain>/api/attribute-groups/{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"
}
}