FRAMES | NO FRAMES

 

B U S I N E S S   A N A L Y S T   10.2   R E S T   R E P O S I T O R Y   U T I L I T Y

Open Segmentation Target Group Endpoint

Returns XML serialized segmentation target group.

 

Availability: Business Analyst Server.

 

URL Example

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/OpenSegTargetGroup/execute

Parameters

Parameter

Description

Item (required)

Folder item containing a segmentation target group. Type esriFolderItem.

compatibility (optional)

Business Analyst Server version the JSON output is compatible with. Type string.

f (optional)

Response format. Type string. Available formats: HTML, JSON, PJSON, XML.

Default: HTML.

token

Authentication token. This parameter is required if your Business Analyst Server is secured. Type string.

Returns

Variable of type string containing XML serialized segmentation target group.

Example Usage

The example below retrieves an existing segmentation target group item from Business Analyst Server Repository. In order to demonstrate this method, a market segmentation target group is created and saved to the repository. The OpenSegTargetGroup method is then used to retrieve the profile.

 

STEP 1: Create a target group

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/TargetGroup/execute?
Targets=[{"Core":["1","2","3"]},{"Secondary":["4","5"]}]&OutputItem={
  "WorkspaceName":"Default Workspace",
  "ProjectName":"Default Project",
  "folderType":"esriFolderSegTGs",
  "itemName":"targetGroup_OpenSegTargetGroup"
}&
f=PJSON

 

STEP 2: Execute the OpenSegTargetGroup request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/OpenSegTargetGroup/execute?
Item={
  "WorkspaceName":"Default Workspace",
  "ProjectName":"Default Project",
  "folderType":"esriFolderSegTGs",
  "itemName":"targetGroup_OpenSegTargetGroup"
}&
f=PJSON

 

Response

{
  "results":
  [
    {
      "paramName":"TargetGroupData",
      "dataType":"GPString",
      "value":"<TargetGroupData><Target Name=\"Core\"><Cluster Code=\"1\" Name=\"Top Rung\" />...</TargetGroupData>"
    }
  ],
  "messages":
  [
  ]
}

 

NOTE: The response has been abbreviated where "..." is noted.

 

See Also

TargetGroupData Type

Business Analyst Server Repository

Business Analyst Server REST Reference