Create or Update a Dynamic Segment Type (ARM)

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

Creates a new or updates an existing dynamic Segment type.


The request is constructed as follows:

HTTP Verb Request URI
PUT <<subId>/resourceGroups/<rgName>/providers/Microsoft.CustomerInsights/hubs/<hubName>/segments/dynamic/<segmentName>?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 Name of your Customer Insights Hub
segmentName Yes The name of the dynamic segment type to create or update

Request Body

The request body may only contain the following subset of Segment properties that can be directly modified.

Property JSON Type Description
description string Description of segment or its membership
targetProfileTypeName string Name of the profile type the query evaluates to
query string Query used to define dynamic membership; see Segmentation Query Language
segmentRefreshRateIntervalMinutes integer Number of minutes between re-evaluations of query
activationStatus string Active if segment evaluation is activated, otherwise Disabled
tags array List of user-defined segment tags


   "description":"Test salesperson segment",
   "tags":["summerCampaign", "dynamic"]


The response includes an HTTP status code and a standard set of response headers. If successful (202), the body will contain a Segment definition for the newly created or modified segment, for example:

         "description":"Test salesperson segment", 
         "tags":  ["summerCampaign", "dynamic"] 
      "segmentState":{ "evaluationDuration":"00:00:00", "segmentEvaluationState":"PendingEvaluation", "segmentSize":0 }, 

Status Code

  • 200 (OK) - Request completed successfully.
  • 202 (Accepted) - Request is being processed.
  • 400 (Bad request) - Request contains invalid property names or values.
  • 409 (Conflict) - Segment is in an intermediate provisioning state