Create or Update KPI (Hub)

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

Creates a new or updates an existing KPI in a Customer Insights Hub.

Request

The request is constructed as follows:

HTTP Verb Request URI
PUT <hub-endpoint>/manage/model/kpi/<kpiName>?api-version=2017-04-26

URI Parameters

URI Parameter Required Description
Hub-endpoint Yes The base URL for your Customer Insights Hub
KpiName Yes The name of the KPI to create or update.

Request Body

A JSON object that contains a KPI definition.

Response

The response includes an HTTP status code and a standard set of response headers.

Status Code

  • 200 (OK) - the update request completed successfully. The provisioningState property in the response body is set to 'Succeeded' when the provisioning finishes.
  • 400 (Bad Request) - The display name or definition contains invalid JSON.