---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability"
tags: ["NotificationHubs"]
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability`

Checks the availability of the given notificationHub in a namespace.

## Path parameters

- `resourceGroupName` string, required
- `namespaceName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CheckAvailabilityParameters — Parameters supplied to the Check Name Availability for Namespace and NotificationHubs.
  - `id` string — Resource Id
  - `name` string, required — Resource name
  - `type` string — Resource type
  - `location` string — Resource location
  - `tags` object — Resource tags
  - `sku` Sku — The Sku description for a namespace
    - `name` 'Free' | 'Basic' | 'Standard', required — Name of the notification hub sku
    - `tier` string — The tier of particular sku
    - `size` string — The Sku size
    - `family` string — The Sku Family
    - `capacity` integer — The capacity of the resource
  - `isAvailiable` boolean — True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false.

## Response `200`

Checks if the NotificationHub name is a valid available name

- CheckAvailabilityResult
  - `id` string — Resource Id
  - `name` string — Resource name
  - `type` string — Resource type
  - `location` string — Resource location
  - `tags` object — Resource tags
  - `sku` Sku — The Sku description for a namespace
    - `name` 'Free' | 'Basic' | 'Standard', required — Name of the notification hub sku
    - `tier` string — The tier of particular sku
    - `size` string — The Sku size
    - `family` string — The Sku Family
    - `capacity` integer — The capacity of the resource

---

[API](https://skmtc.net/azure/apis/notificationhubsmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/notificationhubsmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/notificationhubsmanagementclient/versions/0440982ffa8f/schema)
