Create or Update Hub (ARM)

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

Updates an existing Customer Insights Hub.

Request

The update hub request is constructed as follows:

HTTP Verb Request URI
PATCH 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.

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.

Response Body

The format of the response body is as follows:

{ 
    'id':'/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.CustomerInsights/hubs/<hubName>' 
    'name':'testHub2839', 
    'type':'Microsoft.CustomerInsights/hubs', 
    'location':'East US', 
    'tags': ' 
        { 
            ['key1':'value1'], 
            ['key2':'value2'],
            ... 
        }', 
        'properties' : 
        { 
            'provisioningState':'Created', 
            'apiEndpoint':'testHub2839.api.azurecustomerinsights.com', 
            'webEndpoint':'testHub2839.apps.azurecustomerinsights.com' 
            "hubBillingInfo": {
                "skuName": "B0",
                "minUnits": 1,
                "maxUnits": 5
            },
            "tenantFeatures": 0,
        } 
}