commercetools icon

commercetools

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

Actions671

Product Selection → Check if ProductSelection exists by Key

AI-generated

Summary

Check if a Product Selection exists in commercetools by its unique key using a HEAD request to the API.

Inputs

  • Product Selection Key (required) — The unique key identifier of the Product Selection to check for existence.

Output shape

a single JSON object indicating existence status with properties: exists (boolean), statusCode (number), and url (string).

Returns exists=true and statusCode=200 if the Product Selection is found; exists=false and statusCode=404 if not found. Other HTTP errors throw an error.

Examples

Example 1: Check existence of a Product Selection by key 'summer_collection'

Set resource to 'Product Selection', operation to 'Check if ProductSelection exists by Key', and enter 'summer_collection' in the Product Selection Key field.

Links

Discussion