commercetools icon

commercetools

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

Actions671

Associate-role → Check if AssociateRole exists by Query Predicate

AI-generated

Summary

Check if an AssociateRole exists in commercetools by applying a query predicate filter.

Inputs

  • where — A query predicate string to filter the AssociateRoles (optional).

Output shape

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

This operation performs an HTTP HEAD request to verify if any AssociateRole matches the query predicate. If found, returns exists=true with statusCode 200; if not found, returns exists=false with statusCode 404. Errors other than 404 are thrown.

Links

Discussion