---
title: "Link Notification Hub"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub"
tags: ["CommunicationServices"]
---

# Link Notification Hub

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Links an Azure Notification Hub to this communication service.

## Path parameters

- `communicationServiceName` string, required

## Parameters

- `../../../../../common-types/resource-management/v6/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../common-types/resource-management/v6/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../common-types/resource-management/v6/types.json#/components/parameters/ResourceGroupNameParameter` (unresolved $ref)

## Request body

- LinkNotificationHubParameters: Description of an Azure Notification Hub to link to the communication service
  - `resourceId` string, required: The resource ID of the notification hub
  - `connectionString` string, required: Connection string for the notification hub

## Response `200`

Azure operation completed successfully.

- LinkedNotificationHub: A notification hub that has been linked to the communication service
  - `resourceId` string: The resource ID of the notification hub

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/azure-communication-services-management-api.md) - [All operations](https://skmtc.dev/azure/apis/azure-communication-services-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-communication-services-management-api/revisions/e6c2b8feaddf?raw)
