Create or Update Hub (ARM)

[This topic is pre-release documentation and is subject to change.]

Creates a new or updates an existing Customer Insights Hub.

Request

The create/update hub request is constructed as follows:

HTTP Verb Request URI
PUT https://management.azure.com/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.CustomerInsights/hubs/<hubName>?api-version=2017-04-26

URI Parameters

URI Parameter Required Description
subId Yes The Azure subscription ID
rgName Yes The resource group name
hubName Yes The name of the hub to create or update. Customer Insights Hub names must be globally unique.

Request Body

The Hub value to create/update, for example:

{
    "id": "testHub2839",
    "location": "East US",
    "name": "TestHub2839",
    "type": "Microsoft.CustomerInsights/hubs",
    "tags": {
    },
    "properties": {
        "apiEndpoint": "https://testHub2839.api.azurecustomerinsights.com",
        "webEndpoint": "https://testHub2839.apps.azurecustomerinsights.com",
        "provisioningState": "Creating",
        "hubBillingInfo": {
            "skuName": "B0",
            "minUnits": 1,
            "maxUnits": 5
        },
        "tenantFeatures": 0
    }
}

Response

The response includes an HTTP status code, a set of response headers, and a response body. Upon success, the body will contain information about the newly created view in the following form:

{ 
    "id": <hubUrl>, 
    "name": <hubName>, 
    "type": "Microsoft.CustomerInsights/hubs", 
    "properties": { <hubProperties> }
    "tags": {<hubTags> }
}

Status Code

  • 200 (OK) - if the update request completed successfully.

  • 201 (Created) - if the create request completed successfully.

  • 409 (Conflict) - if a hub with the supplied name already exists.