Update an existing attribute definition. This playground calls the live API and will modify your data.
Update an existing attribute definition by id.
Send only the fields you want to change. For single-select / multi-select attributes, options are managed through the options array using a per-option action (new, edit, delete).
PUT https://api.commerceclarity.com/api/2026-05/attributes/update/{id}| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Required | The attribute's attribute_id or Mongo _id. |
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Optional | New attribute name. |
description | string | Optional | New description. |
is_enabled | boolean | Optional | Enable/disable the attribute. |
options | array | Optional | Select options to add/edit/remove. Each entry has an action (new | edit | delete) and a value. |
family_ids | array | Optional | Family ids for family-scoped attributes. |
curl -X PUT "https://api.commerceclarity.com/api/2026-05/attributes/update/color" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "Colour", "is_enabled": true }'
{
"success": true,
"data": {
"attribute": {
"_id": "507f1f77bcf86cd799439011",
"attribute_id": "color",
"name": "Colour",
"type": "single-select",
"scope": "global",
"updated_at": "2026-01-15T11:00:00Z"
}
}
}{
"success": false,
"message": "Attribute not found"
}