Create or Update Prediction Type (ARM)

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

Either creates a new Prediction type or updates the type if it already exists.

Request

The request is constructed as follows:

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

URI Parameters

URI Parameter Required Description
subId Yes Subscription ID
rgName Yes Azure region name
hubName Yes Name of your Customer Insights Hub
predictionName Yes Name of the prediction to update/create

Request Body

A JSON object describing a Prediction type.

Response

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

{ 
    "id": <predictionUrl>, 
    "name": <predictionName>, 
    "type": "Microsoft.CustomerInsights/hubs/predictions"
}

Status Code

  • 200 (OK) - Update request completed successfully.
  • 202 (Accepted) - Create request was accepted.

Type provisioning is typically a long running operation. The initial request will come back with HTTP Accepted (202) with a location header to GET the status of the operation. The properties in the response body will have a field called provisioningState. Eventually performing a GET for the prediction will return a response where provisioningState is set to Succeeded, indicating success.