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 ID

AI-generated

Summary

Check if a Product Selection exists in commercetools by its ID using an HTTP HEAD request.

Inputs

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

Output shape

a single object with properties: exists (boolean), statusCode (number), and url (string)

Returns exists as true with statusCode 200 if the Product Selection is found; returns exists as false with statusCode 404 if not found. Throws an error for other HTTP statuses.

Examples

Example 1: Check if a Product Selection with ID 'abc123' exists

Set resource to 'Product Selection', operation to 'Check if ProductSelection exists by ID', and Product Selection ID to 'abc123'.

Links

Discussion