commercetools icon

commercetools

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

Actions671

Product Tailoring → Check if ProductTailoring exists by Query Predicate

AI-generated

Summary

Check the existence of a Product Tailoring resource in commercetools using a specified query predicate to filter the search.

Inputs

  • Filters — Optional query filter collection where you can specify the 'Where' parameter as a string predicate to filter Product Tailoring items.

Output shape

a JSON object indicating existence, including 'exists' (boolean), 'statusCode' (number), and 'url' (string) of the executed request.

This operation performs an HTTP HEAD request to the commercetools API. It returns existence status without the full resource data. If the resource matching the query exists, 'exists' is true with statusCode 200; if not found, 'exists' is false with statusCode 404. Other HTTP errors throw an error.

Examples

Example 1: Check if any Product Tailoring matches the predicate 'key="example-key"' exists by providing the 'Where' filter string accordingly in the 'Filters' input.

Set resource to 'Product Tailoring', operation to 'Check if ProductTailoring exists by Query Predicate', and in Filters, set 'Where' to 'key="example-key"'.

Links

Discussion