Authentication
Handles authenticating and logging out a user for your app
API | Description |
---|---|
POST api/v1/Authentication/Login |
Logs in a user |
POST api/v1/Authentication/Logout |
Logs a user out. |
POST api/v1/Authentication/TokenLogin |
Reauthenticates a user by their login token generated during a normal login. |
POST api/v1/Authentication/RequestPasswordReset?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Sends a password reset request to the provided user |
POST api/v1/Authentication/FinishPasswordReset |
Allows the user to finish their password reset using the reset code we send to their email. |
Commitment
API | Description |
---|---|
GET api/v1/Commitments |
Gets the user's commitments. The default date range returns this week and three weeks forward. |
GET api/v1/Commitments/Team/{teamID} |
Gets the commitments for all users on the team. The logged in user should either be on the team, or one of its parent teams, or an admin level user. The default date range returns this week and three weeks forward. |
GET api/v1/Commitments/User/{userID} |
Gets the commitments for a specific user. The logged in user should either share a team, or be in one one of the target user's parent teams, or an admin level user. The default date range returns this week and three weeks forward. |
GET api/v1/Commitments/{id} |
Gets a specific commitment |
DELETE api/v1/Commitments/{id}?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Deletes the given commitment |
PUT api/v1/Commitments/{id} |
Updates an existing commitment |
POST api/v1/Commitments |
Creates a new commitment |
Company
API | Description |
---|---|
GET api/v1/Company |
Gets basic information about the user's company |
Goal
API | Description |
---|---|
GET api/v1/Goals/{id} |
Gets a specific goal and all of its first level relationships to other goals. Only returns active goals. |
GET api/Teams/{id}/Goals |
Returns an collection of goals for a given team ID |
DELETE api/v1/Goals/{id}?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Deletes a goal by its ID |
PATCH api/v1/Goals/{id} |
Undeletes a goal by its ID |
DELETE api/v1/Goals/{id}/Retire?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Retires a goal by its ID |
PATCH api/v1/Goals/{id}/UnRetire |
Unretire a goal by its ID |
PUT api/v1/Goals/{id} |
Updates an existing goal |
POST api/v1/Goals |
Create a new goal |
GET api/v1/Goals/Waypoints |
Returns all of the waypoints for a collection of goal IDs |
PUT api/v1/Goals/{id}/Waypoints |
Synchronize a list of waypoints with the existing waypoints on a goal. |
GET api/v1/Goals/{id}/Periods |
Returns all goal history/periods for a goal ID |
Organizational Unit
Sustainability Index
API | Description |
---|---|
GET api/v1/SustainabilityIndex/Teams/{teamID} |
Gets the Sustainability Index for a team for the given date range. The default start date starts seven (7) weeks before the most recent Sunday and goes six (6) weeks from there. |
GET api/v1/SustainabilityIndex/OrganizationalUnits/{ouID}/{week} |
Gets the 1 Week and 6 Week Sustainability Index for a team |
Team
User
API | Description |
---|---|
PUT api/v1/Users/{id}/Password?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Change password for given user |
PATCH api/v1/Users/{id}/Unlock?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Unlock a given user |
DELETE api/v1/Users/{id}?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Delete a given user |
PATCH api/v1/Users/{id}/UnDelete?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
UnDelete a given user |
PATCH api/v1/Users/{id}/MustChangePassword?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Set a password change requirement on a given user |
POST api/v1/Users |
Create a new user |
GET api/v1/Users/Me |
Gets the logged in user |
PATCH api/v1/Users/{id}/FullName?suppressResponseCodes={suppressResponseCodes}&APIKey={APIKey}&APIToken={APIToken} |
Update user first and last name |