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.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userID | globally unique identifier |
Required |
|
startDate |
The start date. If null it will use the default start date |
date |
None. |
endDate |
The end date. If null it will use the default end date |
date |
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
PaginatedResultsOfCommitmentName | Description | Type | Additional information |
---|---|---|---|
limit | integer |
None. |
|
offset | integer |
None. |
|
totalRecordCount | integer |
None. |
|
data | Collection of Commitment |
None. |
Response Formats
application/json, text/json
{ "limit": 1, "offset": 2, "totalRecordCount": 3, "data": [ { "ID": "c2940461-01da-4c0e-a233-253bf5d2c926", "Text": "sample string 2", "Completed": true, "PeriodStartDate": "2024-11-21T01:27:08.7965042-05:00", "GoalID": "0e98fcf1-22a2-4747-9124-31e585d1c6b3", "TeamID": "603bb9c8-c5ee-4da3-95f8-0d16dc62166e", "UserID": "653b8871-3749-40be-995c-ded1dc5026cc" }, { "ID": "c2940461-01da-4c0e-a233-253bf5d2c926", "Text": "sample string 2", "Completed": true, "PeriodStartDate": "2024-11-21T01:27:08.7965042-05:00", "GoalID": "0e98fcf1-22a2-4747-9124-31e585d1c6b3", "TeamID": "603bb9c8-c5ee-4da3-95f8-0d16dc62166e", "UserID": "653b8871-3749-40be-995c-ded1dc5026cc" } ] }