commercetools icon

commercetools

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

Actions671

Quote-request → Check if QuoteRequest exists by Query Predicate

AI-generated

Summary

Check if a QuoteRequest exists in commercetools by sending a HEAD request with an optional query predicate filter.

Inputs

  • Filters — Optional filter parameters to specify conditions in the query predicate, including the 'Where' string to refine the search.

Output shape

a single JSON object containing boolean 'exists', 'statusCode', and the requested 'url' indicating if any QuoteRequest matches the predicate.

Returns { exists: true } if one or more QuoteRequests match the query predicate; { exists: false } with status 404 if none match. Uses HTTP HEAD to check existence without returning resource data. Errors other than 404 surface as node errors.

Examples

Example 1: Check existence of QuoteRequests with a specific condition

Set resource to 'Quote-request', operation to 'Check if QuoteRequest exists by Query Predicate', and specify the 'Where' filter string under Filters.

Links

Discussion