commercetools icon

commercetools

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

Actions671

Message → Check if Message exists by ID

AI-generated

Summary

Check if a specific Message exists in the commercetools project by its Message ID using a HEAD request to the corresponding Message endpoint.

Inputs

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

Output shape

a single JSON object containing 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the requested URL).

Returns 'exists' as true if the Message is found (status code 200), or false if not found (status code 404). Other HTTP errors are raised as node errors.

Examples

Example 1: Check Message existence

Provide the Message ID to verify if the Message exists in commercetools.

Links

Discussion