commercetools icon

commercetools

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

Actions671

Business Unit → Check if Business Unit Search index exists

AI-generated

Summary

Check the existence of the Business Unit Search index by performing an HTTP HEAD request to the corresponding commercetools API endpoint.

Inputs

None.

Output shape

a single JSON object with fields 'exists' (boolean), 'statusCode' (number), and 'url' (string) indicating whether the search index exists and details of the request.

Returns 'exists: true' and HTTP status code 200 if the search index exists; returns 'exists: false' with status code 404 if not found. May throw an error for other HTTP status codes.

Examples

Example 1: Verify if the Business Unit Search index is available before performing search queries.

Set resource to 'Business Unit' and operation to 'Check if Business Unit Search index exists'. No additional parameters needed.

Links

Discussion