---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability"
tags: ["Proxy"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability`

Check if a service instance name is available.

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- CheckNameAvailabilityParameters — Input values.
  - `name` string, required — The name of the service instance to check.
  - `type` string, required — The fully qualified resource type which includes provider namespace.

## Response `200`

This is a synchronous operation. The body contains a JSON-serialized response that specifies whether the service name is available. If the name is not available, the body contains the reason.

- ServicesNameAvailabilityInfo — The properties indicating whether a given service name is available.
  - `nameAvailable` boolean — The value which indicates whether the provided name is available.
  - `reason` 'Invalid' | 'AlreadyExists' — The reason for unavailability.
  - `message` string — The detailed reason message.

## Other responses

- `default` — DefaultErrorResponse

---

[API](https://skmtc.net/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis.md) · [All operations](https://skmtc.net/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/healthcareapis-microsoft-healthcareapis-healthcareapis/revisions/0b492d344582/schema)
