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 Key

AI-generated

Summary

Check if an Associate-role exists by performing a HEAD request to the commercetools API endpoint for the Associate-role identified by its Key.

Inputs

  • Associate-role Key (required) — The unique key of the Associate-role to check for existence.

Output shape

a JSON object containing 'exists' (boolean), 'statusCode' (number), and the requested URL (string).

Returns 'exists: true' with statusCode 200 if the Associate-role exists; returns 'exists: false' with statusCode 404 if not found. Throws error for other HTTP failures.

Examples

Example 1: Check for existence of Associate-role by key

Provide the 'Associate-role Key' string to specify which Associate-role to check.

Links

Discussion