commercetools icon

commercetools

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

Actions671

Type → Check if Type exists by ID

AI-generated

Summary

Check if a commercetools Type exists by its ID using an HTTP HEAD request.

Inputs

  • Type ID (required) — The ID of the Type to check for existence.

Output shape

a single JSON object indicating existence with fields 'exists' (boolean), 'statusCode' (number), and 'url' (string).

Returns 'exists' as true if the Type exists with a 200 status code, or false with a 404 status code if it does not. Throws errors for other HTTP failures.

Examples

Example 1: Verify existence of a Type by ID

Provide the Type ID in the 'Type ID' input parameter; the node performs an authenticated HEAD request to the commercetools API to check if the Type exists and outputs the existence status and HTTP response code.

Links

Discussion