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 Query Predicate

AI-generated

Summary

Check the existence of an AttributeGroup in commercetools by sending a GET request with an optional OData query predicate filter.

Inputs

  • Where — A string representing an OData 'where' predicate to filter AttributeGroups.

Output shape

A JSON object indicating whether the AttributeGroup exists, including fields such as 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the API endpoint queried).

This operation uses an HTTP HEAD request to check existence and handles 404 as 'not exists'. Additional filters are applied as query parameters if provided.

Examples

Example 1: Check if any AttributeGroup exists matching a specific condition

Set the 'Where' parameter to a valid OData predicate string to filter AttributeGroups before checking existence.

Links

Discussion