Update a single attribute of an entity. This playground calls the live API and will modify your data.
Update the value of a single attribute (or core field) on a specific entity, identified by the attribute's normalised name.
This endpoint sets an attribute value on one entity — it powers the inline grid editor. It does not change the attribute definition itself (to create, rename or delete an attribute, use the Attributes endpoints).
Pass the norm_name of the attribute you want to change together with the new value. The value format depends on the attribute type, and select options are validated against the attribute definition.
PUT https://api.commerceclarity.com/api/2026-05/entities/{entity_id}| Parameter | Type | Required | Description |
|---|---|---|---|
entity_id | string | Required | The _id of the entity to update (brand-scoped). |
| Parameter | Type | Required | Description |
|---|---|---|---|
attr_norm_name | string | Required | The normalised attribute name, as returned by the entities and attributes endpoints. |
value | mixed | Required | The new value. Must be present (may be null to clear). Shape depends on the attribute type — see below. |
brand_id | string | Optional | Override the active brand. |
| Type | Expected value |
|---|---|
text / rich-text | String or null. |
number | Numeric value or numeric string (the unit is preserved). |
boolean | true | false | "true" | "false". |
single-select | A single option label (string). Must match an option defined on the attribute. |
multi-select | An array of option labels (strings). |
cc_category | A category cat_id string, or null to clear. |
pictures | An array of image URL strings, or null. |
publication_state | pending_review | ready | online. |
tags | An array of strings. |
cc_family, created_at, updated_at and status cannot be updated through this endpoint and return 422.
curl -X PUT "https://api.commerceclarity.com/api/2026-05/entities/507f1f77bcf86cd799439011" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "attr_norm_name": "color", "value": ["Black", "Yellow"] }'
const response = await fetch('https://api.commerceclarity.com/api/2026-05/entities/507f1f77bcf86cd799439011', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ attr_norm_name: 'color', value: ['Black', 'Yellow'] })
});
const data = await response.json();
{
"status": "success",
"message": "Attribute updated."
}{
"status": "error",
"message": "Attribute 'color' not found for this brand."
}