commercetools icon

commercetools

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

Actions671

Product-projection → Check if ProductProjection exists by ID

AI-generated

Summary

Check the existence of a Product-projection by its ID using a HEAD request to the commercetools API.

Inputs

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

Output shape

a single JSON object with keys 'exists' (boolean), 'statusCode' (number), and 'url' (string) indicating whether the Product-projection exists.

Returns { exists: true, statusCode: 200, url } if found; returns { exists: false, statusCode: 404, url } if not found. Throws an error on other HTTP errors.

Examples

Example 1: Check if a product projection with a given ID exists before proceeding with update or deletion operations.

Provide the Product-projection ID parameter; the node returns existence information without fetching full product details.

Links

Discussion