Skip to main content
DELETE
/
admin
/
product-attributes
/
{id}
/
values
/
{value_id}
curl -X DELETE 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF/values/pattrval_01HXYZABCDEF' \
  -H 'Authorization: Bearer <token>'
{
  "product_attribute": {
    "id": "pattr_01HXYZABCDEF",
    "name": "Material",
    "type": "single_select",
    "values": []
  }
}
Deletes the value and returns the parent attribute.

Path parameters

id
string
required
The attribute’s ID.
value_id
string
required
The value’s ID.

Response

product_attribute
object
curl -X DELETE 'http://localhost:9000/admin/product-attributes/pattr_01HXYZABCDEF/values/pattrval_01HXYZABCDEF' \
  -H 'Authorization: Bearer <token>'
{
  "product_attribute": {
    "id": "pattr_01HXYZABCDEF",
    "name": "Material",
    "type": "single_select",
    "values": []
  }
}