GET api/v1/SustainabilityIndex/OrganizationalUnits/{ouID}/{week}
Gets the 1 Week and 6 Week Sustainability Index for a team
Request Information
URI Parameters
Name | Description | Type | Additional 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
OUSustainabilityIndexModelInfoName | Description | Type | Additional 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
{ "OUID": "3c566fb6-aed5-4717-ab64-54b908a27c00", "ScoreWithChildren": { "StartDate": "2024-11-21T02:08:21.1845733-05:00", "EndDate": "2024-11-21T02:08:21.1845733-05:00", "NumberOfUsersExecuting": 3.0, "NumberOfUsersThatShouldBeExecuting": 4.0, "NumberOfSessionsHeld": 5.0, "NumberOfSessionsThatCouldBeHeld": 6.0, "NumberOfCommitmentsKept": 7.0, "NumberOfCommitments": 8.0 } }