Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

ColorAttribute Criterion

The ColorAttribute Search Criterion searches for products by the value of their color attribute.

Arguments

  • identifier - string representing the attribute
  • value - array of strings representing the attribute values

Example

You can use this Search Criterion over the REST API, in the payload of the POST /product/catalog/products/view request:

1
2
3
4
5
6
7
8
<ProductQuery>
    <Query>
        <ColorAttributeCriterion>
            <identifier>color</identifier>
            <value>#000000</value>
        </ColorAttributeCriterion>
    </Query>
</ProductQuery>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "ProductQuery": {
    "Query": {
      "ColorAttributeCriterion": {
            "identifier": "color",
            "value": ["#000000"]
        },
    }
  }
}