commercetools icon

commercetools

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

Actions671

Attribute-group → Check if AttributeGroup exists by Key

AI-generated

Summary

Check the existence of an Attribute-group in commercetools by its unique key using a HEAD HTTP request.

Inputs

  • Attribute-group Key (required) — The unique key identifying the Attribute-group you want to check for existence.

Output shape

a JSON object indicating existence with fields 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (the request URL).

Returns { exists: true, statusCode: 200, url } if the Attribute-group exists; returns { exists: false, statusCode: 404, url } if it does not. Throws an error for other HTTP response statuses.

Examples

Example 1: Check whether an Attribute-group with key 'color-attributes' exists.

Set Resource to 'Attribute-group', Operation to 'Check if AttributeGroup exists by Key', and enter 'color-attributes' for 'Attribute-group Key'. Upon execution, the node returns a JSON response indicating if that Attribute-group exists in commercetools.

Links

Discussion