commercetools icon

commercetools

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

Actions671

Type → Check if Type exists by Key

AI-generated

Summary

Check the existence of a commercetools Type resource by performing a HEAD request using its unique key within the specified project and region.

Inputs

  • Type Key (required) — The unique key identifying the Type resource to check for existence.

Output shape

a single JSON object containing 'exists' (boolean), 'statusCode' (number), and 'url' (string) fields indicating whether the Type with the specified key exists.

The operation performs a HEAD HTTP request and returns { exists: true, statusCode: 200, url } if the Type exists, or { exists: false, statusCode: 404, url } if not found. Any other HTTP error status will raise a NodeApiError.

Links

Discussion