commercetools icon

commercetools

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

Actions671

Extension → Check if Extension exists by ID

AI-generated

Summary

Check whether an Extension resource exists in commercetools by its ID using a HEAD request to the API.

Inputs

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

Output shape

a single JSON object containing 'exists' (boolean), 'statusCode' (number), and 'url' (string) fields indicating the presence of the Extension and HTTP status details.

Returns an object with 'exists' = true and status code 200 if the Extension exists; returns 'exists' = false and status code 404 if not found. Other errors throw an exception. No Extension data is returned, only existence status.

Examples

Example 1: Extension with given ID exists

Set the 'Extension ID' input to the known ID of an existing Extension resource in commercetools.

Example 2: Extension with given ID does not exist

Set the 'Extension ID' input to an ID that does not exist in commercetools.

Links

Discussion