commercetools icon

commercetools

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

Actions671

Category → Check if Category exists by Query Predicate

AI-generated

Summary

Check if a Category exists in commercetools by performing a query with a specified "where" predicate filter.

Inputs

  • Filters — An optional collection containing the 'where' string predicate to filter Categories in the query.

Output shape

a single JSON object

Returns an object with a boolean 'exists' property indicating if any Category matches the predicate, along with HTTP status code and request URL. Uses a HEAD request to verify existence efficiently.

Examples

Example 1: Check if a Category named 'Summer Collection' exists

Set 'where' filter to name(en='Summer Collection') to verify its existence.

Links

Discussion