---
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`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Check if a service instance name is available.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## 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

## Changes

- **2026-07-13** (2018-08-20-preview) `06ce885a3f23`: 2 breaking
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`
- **2026-07-13** (2018-08-20-preview) `e9a3134bbbf0`: 2 warning
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`

[Operation history](https://skmtc.dev/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis/changes/subscriptions/:subscriptionId/providers/Microsoft.HealthcareApis/checkNameAvailability/post.md)

---

[API](https://skmtc.dev/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis.md) - [All operations](https://skmtc.dev/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/healthcareapis-microsoft-healthcareapis-healthcareapis/revisions/06ce885a3f23?raw)
