commercetools icon

commercetools

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

Actions671

Channel → Check if Channel exists by Query Predicate

AI-generated

Summary

Check if a commercetools Channel exists by sending a query with a predicate to filter Channels.

Inputs

  • Where — A conditional string (predicate) to filter Channels by specific attributes, supplied in the 'Where' field within the Filters collection.

Output shape

a single JSON object indicating existence, including fields 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (queried endpoint)

Returns objects with 'exists' true if matching Channels found, or false if none found (404). Does not return the Channel data itself, only existence status.

Examples

Example 1: Check if any Channel matches a specific predicate

Set the 'Where' field to a valid commercetools query predicate string (e.g., 'key="my-channel-key"'). The node returns true if any Channels match the predicate.

Links

Discussion