commercetools icon

commercetools

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

Actions671

Extension → Check if Extension exists by Key

AI-generated

Summary

Check the existence of a commercetools Extension by its unique key using a HEAD HTTP request.

Inputs

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

Output shape

a JSON object indicating existence with properties 'exists' (boolean), 'statusCode' (HTTP status), and the checked 'url' string.

The operation returns immediately with existence status: { exists: true, statusCode: 200 } if found, or { exists: false, statusCode: 404 } if not. Other HTTP errors throw an error. No full extension data is returned.

Examples

Example 1: Check if an Extension with key 'promo-extension' exists

Provide the Extension Key parameter as 'promo-extension'. The output will confirm existence or absence.

Links

Discussion