commercetools icon

commercetools

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

Actions671

Api-client → Check if ApiClient exists by ID

AI-generated

Summary

Check if an Api-client exists by its ID by performing a HEAD request to the commercetools API. Return an object indicating existence, HTTP status, and the requested URL.

Inputs

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

Output shape

A JSON object containing the boolean 'exists' field, the HTTP status code as 'statusCode', and the requested URL as 'url'.

The operation returns an object indicating if the Api-client exists based on a HEAD request. If the API returns 404, 'exists' is false. Other HTTP errors will raise a node error. No detailed Api-client data is returned.

Links

Discussion