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 ID

AI-generated

Summary

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

Inputs

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

Output shape

A JSON object indicating existence status, including 'exists' (boolean), 'statusCode' (HTTP status), and 'url' queried.

Returns { exists: true, statusCode: 200, url: string } if found; returns { exists: false, statusCode: 404, url: string } if not found. Throws an error for other HTTP status codes.

Examples

Example 1: Check whether an Attribute-group with a specified ID exists before taking further action in the workflow.

Set 'resource' to 'Attribute-group', 'operation' to 'Check if AttributeGroup exists by ID', and provide the 'Attribute-group ID' value.

Links

Discussion