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 ID

AI-generated

Summary

Check whether an Associate-role exists in commercetools by its ID using a HEAD request.

Inputs

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

Output shape

an object indicating existence status with properties: 'exists' (boolean), 'statusCode' (HTTP status code), and the requested URL ('url').

Returns { exists: true, statusCode: 200, url } if the Associate-role exists; returns { exists: false, statusCode: 404, url } if not found. Throws an error for other HTTP errors.

Links

Discussion