GET api/Teams/{id}/Goals

Returns an collection of goals for a given team ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the team requested

globally unique identifier

Required

IncludeRetired

If should include retired goals

boolean

None.

IncludeDeleted

If should include deleted goals

boolean

None.

IncludeFuture

If should include future goals

boolean

None.

q

A query parameter. Use this to limit the result set. ?q[fieldName1]=value1&q[fieldName2]=value2

Dictionary of string [key] and string [value]

None.

limit

The number of records returned, default is 20

integer

None.

offset

The offset from the start of the list of values, default is 0

integer

None.

orderBy

Orders the list that comes down to the field name provided. If not provided then the default ordering will be used.

string

None.

fields

Use this to only return the data fields you're interested in. Field names not found are ignored and no error is thrown. If no fields are found then the full object is returned.

Collection of string

None.

suppressResponseCodes

Some applications do wonky things if error codes are used. Use this to force 200s to always return.

boolean

None.

APIKey

This is your unique key that identifies you as the developer of this app. Required for all calls.

string

None.

APIToken

This is the user's session token generated when you authenticate the user

string

None.

Body Parameters

None.

Response Information

Resource Description

PaginatedResultsOfGoal
NameDescriptionTypeAdditional information
limit

integer

None.

offset

integer

None.

totalRecordCount

integer

None.

data

Collection of Goal

None.

Response Formats

application/json, text/json

Sample:
{
  "limit": 1,
  "offset": 2,
  "totalRecordCount": 3,
  "data": [
    {
      "ID": "9c11e941-5c1e-4933-89e8-d95136a86aca",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "GoalType": 64,
      "DisplayType": 64,
      "DisplayColor": 64,
      "BoundaryType": 64,
      "CurrentValue": 8.1,
      "TargetValue": 9.1,
      "DisplayValue": 10.1,
      "StartValue": 11.1,
      "EndValue": 12.1,
      "CurrentDecimalLength": 13,
      "TargetDecimalLength": 14,
      "FinalDecimalLength": 15,
      "TeamID": "f548269c-e569-46b1-a0d8-1380613bbef5",
      "YellowTolerance": 17.1,
      "RedTolerance": 18.1,
      "WaypointType": 19,
      "InTeamChildrenIDs": [
        "a64db96c-12d0-4e48-b08c-9eb294cb5432",
        "8d309e94-e346-480f-8d7e-250686bb567f"
      ],
      "InTeamParentIDs": [
        "7ea9ccff-720c-41ab-b4a2-30403dfb2321",
        "182cac8a-f7a1-4d51-a43f-3a73cb8d60e7"
      ],
      "OutTeamChildrenIDs": [
        "ca0a14e9-20b9-4ddb-b390-930312ad8d03",
        "cabe02fa-36e0-4233-942e-1b4834828582"
      ],
      "OutTeamParentIDs": [
        "0e9f93b3-5699-431f-886d-7271f3ff6b2d",
        "4501ba32-11af-48f0-9558-2cfad2cad47c"
      ],
      "IsRetired": true,
      "IsDeleted": true,
      "IsFuture": true
    },
    {
      "ID": "9c11e941-5c1e-4933-89e8-d95136a86aca",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "GoalType": 64,
      "DisplayType": 64,
      "DisplayColor": 64,
      "BoundaryType": 64,
      "CurrentValue": 8.1,
      "TargetValue": 9.1,
      "DisplayValue": 10.1,
      "StartValue": 11.1,
      "EndValue": 12.1,
      "CurrentDecimalLength": 13,
      "TargetDecimalLength": 14,
      "FinalDecimalLength": 15,
      "TeamID": "f548269c-e569-46b1-a0d8-1380613bbef5",
      "YellowTolerance": 17.1,
      "RedTolerance": 18.1,
      "WaypointType": 19,
      "InTeamChildrenIDs": [
        "a64db96c-12d0-4e48-b08c-9eb294cb5432",
        "8d309e94-e346-480f-8d7e-250686bb567f"
      ],
      "InTeamParentIDs": [
        "7ea9ccff-720c-41ab-b4a2-30403dfb2321",
        "182cac8a-f7a1-4d51-a43f-3a73cb8d60e7"
      ],
      "OutTeamChildrenIDs": [
        "ca0a14e9-20b9-4ddb-b390-930312ad8d03",
        "cabe02fa-36e0-4233-942e-1b4834828582"
      ],
      "OutTeamParentIDs": [
        "0e9f93b3-5699-431f-886d-7271f3ff6b2d",
        "4501ba32-11af-48f0-9558-2cfad2cad47c"
      ],
      "IsRetired": true,
      "IsDeleted": true,
      "IsFuture": true
    }
  ]
}