Create Profile Instance (Hub Data)

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

Creates a new instance of an existing custom Profile type within the specified Hub. If the instance already exists, it is updated.

Request

The request is constructed as follows:

HTTP Verb Request URI
POST <hub-endpoint>/data/<profileType>?api-version=2017-04-26

URI Parameters

URI Parameter Required Description
Hub-endpoint Yes The base URL for your Customer Insights Hub
profileType Yes The custom Profile (entity set) type

Example

POST myapp.api.azurecustomerinsights.com/data/Contacts?api-version=2017-04-26

Request Body

A JSON object describing the custom Profile type instance, for example:

{
    'Id':'SomeId',
    'FirstName': 'John',
    'LastName' : 'Doe',
    'Phone': '934-634-3771'
}


Response

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

Response Body

The body contains the custom Profile instance along with the assigned Profile ID, for example:

{
     'ProfileId' : 'SomeId',
     'Id':'SomeId',
     'FirstName': 'Cri',
     'LastName' : 'Xus',
     'Phone': '934-634-3771'
}

Status Code

  • 202 (Accepted) - if the request was accepted and the instance creation is in process.