API Playground

Update a single attribute of an entity. This playground calls the live API and will modify your data.

Authentication Required

You need to Login to test the API playground

Update entity attribute

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.

Endpoint URL
PUT https://api.commerceclarity.com/api/2026-05/entities/{entity_id}

Path Parameters

ParameterTypeRequiredDescription
entity_idstringRequiredThe _id of the entity to update (brand-scoped).

Body parameters

ParameterTypeRequiredDescription
attr_norm_namestringRequiredThe normalised attribute name, as returned by the entities and attributes endpoints.
valuemixedRequiredThe new value. Must be present (may be null to clear). Shape depends on the attribute type — see below.
brand_idstringOptionalOverride the active brand.

Value format by type

TypeExpected value
text / rich-textString or null.
numberNumeric value or numeric string (the unit is preserved).
booleantrue | false | "true" | "false".
single-selectA single option label (string). Must match an option defined on the attribute.
multi-selectAn array of option labels (strings).
cc_categoryA category cat_id string, or null to clear.
picturesAn array of image URL strings, or null.
publication_statepending_review | ready | online.
tagsAn array of strings.
Read-only: cc_family, created_at, updated_at and status cannot be updated through this endpoint and return 422.

Request Examples

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();

Response Example

Success Response
{
  "status": "success",
  "message": "Attribute updated."
}
Error Response - Validation
{
  "status": "error",
  "message": "Attribute 'color' not found for this brand."
}