GET api/v1/SustainabilityIndex/OrganizationalUnits/{ouID}/{week}

Gets the 1 Week and 6 Week Sustainability Index for a team

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ouID

The ID of the Organizational Unit you want

globally unique identifier

Required

week

Should be a Sunday, if not we go to the previous Sunday. Expects the format YYYY-MM-DD

date

Required

startDate

The start date. If null it will use the default start date. The format needs to be YYYY-MM-DD

date

None.

endDate

The end date. If null it will use the default end date. The format needs to be YYYY-MM-DD

date

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

OUSustainabilityIndexModelInfo
NameDescriptionTypeAdditional information
OUID

The ID of the Organizational Unit this data belongs to

globally unique identifier

None.

ScoreWithChildren

The rolled up score of all teams in this Organizational Unit over the date range

SICalculationData

None.

Response Formats

application/json, text/json

Sample:
{
  "OUID": "7494a94e-c52b-4428-8714-185a5989e96b",
  "ScoreWithChildren": {
    "StartDate": "2024-05-19T12:43:02.635482-04:00",
    "EndDate": "2024-05-19T12:43:02.635482-04:00",
    "NumberOfUsersExecuting": 3.0,
    "NumberOfUsersThatShouldBeExecuting": 4.0,
    "NumberOfSessionsHeld": 5.0,
    "NumberOfSessionsThatCouldBeHeld": 6.0,
    "NumberOfCommitmentsKept": 7.0,
    "NumberOfCommitments": 8.0
  }
}