---
title: "Checks the account name availability."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/checkNameAvailability"
---

# Checks the account name availability.

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

Checks if account 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

- CheckNameAvailabilityRequest — The request payload for CheckNameAvailability API
  - `name` string — Resource name to verify for availability
  - `type` string — Fully qualified resource type which includes provider namespace

## Response `200`

The request has succeeded.

- CheckNameAvailabilityResult — The response payload for CheckNameAvailability API
  - `message` string — Error message
  - `nameAvailable` boolean — Indicates if name is valid and available.
  - `reason` 'Invalid' | 'AlreadyExists' — The reason the name is not available.

## Other responses

- `default` — An unexpected error response.

---

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