Version 2 Goal Groups

Introduction

Requests to list, create, update and delete goal groups for an IGRP.

Goal Group Properties

List Goal Groups for an IGRP

Lists the goal groups for an IGRP.

Request:

GET /config/v2/igrps/{IGRP ID}/goalGroups

Segment Params

GET Params

Filter Types

The goal group list may be filtered by any of the returned fields.

Sort Types

The goal groups list may be sorted by any of the returned fields. By default goal groups are ordered by goal group name in ascending order.

Response:

Returns a list of goal groups for an IGRP.

{"goalGroupId":"1","goalGroupName":"Goal Group name 1","goalGroupDesc":"Goal Group Description 1","goalGroupStatus":"200","goalGroupTypeId":"1","createDatetime":"2019-09-30 10:00:00","updateDatetime":"2019-09-30 10:15:00","deleteDatetime":"0000-00-00 00:00:00","goalGroupTypeName":"Goal Group Type Name 1","goalCount":"3"}
{"goalGroupId":"2","goalGroupName":"Goal Group name 2","goalGroupDesc":"Goal Group Description 2","goalGroupStatus":"200","goalGroupTypeId":"1","createDatetime":"2019-09-30 15:00:00","updateDatetime":"2019-09-30 15:15:00","deleteDatetime":"0000-00-00 00:00:00","goalGroupTypeName":"Goal Group Type Name 1","goalCount":"0"}

Read Goal Group properties

Read goal group properties for the specified goal group ID and IGRP.

Request:

GET /config/v2/igrps/{IGRP ID}/goalGroups/{GOAL GROUP ID}

Segment Params

Response:

Returns details of a goal group for an IGRP.

{"goalGroupId":"1","goalGroupName":"Goal Group name 1","goalGroupDesc":"Goal Group Description 1","goalGroupStatus":"200","goalGroupTypeId":"1","createDatetime":"2019-09-30 10:00:00","updateDatetime":"2019-09-30 10:15:00","deleteDatetime":"0000-00-00 00:00:00","goalGroupTypeName":"Goal Group Type Name 1","goalCount":"3"}

Create Goal Group config

Creates a new goal group and its properties for an IGRP.

Request:

POST /config/v2/igrps/{IGRP ID}/goalGroups

Segment Params

POST Params

Response:

Returns the HTTP 201 (Created) status code if successful.

{"goalGroupId":"3"}

Update Goal Groups Config

Updates the configuration of an existing goal group.

Request:

POST /config/v2/igrps/{IGRP ID}/goalGroups/{GOAL GROUP ID}

Segment Params

POST Params

Response:

Returns the HTTP 204 (No Content) status code if update successful.

HTTP 204 - NO CONTENT

Delete Goal Group Config

Sets goal group status to inactive for an existing goal group.

Request:

DELETE config/v2/igrps/{IGRP ID}/goalGroups/{GOAL GROUP ID}

Segment Params

Response:

Returns the HTTP 204 (No Content) status code if delete successful.

HTTP 204 - NO CONTENT

List Goal Group Types

Lists the goal group types.

Request:

GET /config/v2/goalGroupTypes

GET Params

Filter Types

The goal group types list may be filtered by any of the returned fields.

Sort Types

The goal group types list may be sorted by any of the returned fields. By default goal group types are ordered by goal group type ID in ascending order.

Response:

Returns a list of goal group types for an IGRP.

{"goalGroupTypeId":"1","goalGroupTypeName":"Goal Group Type Name 1","goalGroupTypeDesc":"Goal Group Type Description 1"}
{"goalGroupTypeId":"2","goalGroupTypeName":"Goal Group Type Name 2","goalGroupTypeDesc":"Goal Group Type Description 2"}