commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Review → Check if Review exists by Query Predicate

AI-generated

Summary

Check the existence of commercetools reviews matching a query predicate by performing a HEAD request to the reviews endpoint with specified filters.

Inputs

  • Filters — Allows setting a 'Where' string filter as a query predicate to specify which reviews to check for existence.

Output shape

a single JSON object indicating whether matching reviews exist, including 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (request URL).

This operation uses a HEAD HTTP request to verify existence; if matching reviews are found, 'exists' is true with status 200, otherwise false with status 404. Errors other than 404 are thrown as node errors.

Links

Discussion