GET api/v1/Commitments/{id}

Gets a specific commitment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the commitment requested

globally unique identifier

Required

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

Commitment
NameDescriptionTypeAdditional information
ID

The commitment's ID

globally unique identifier

None.

Text

The text body of the commitment

string

None.

Completed

Whether the user has completed the commitment

boolean

None.

PeriodStartDate

The week the commitment is for

date

None.

GoalID

The goal the commitment is tied to

globally unique identifier

None.

TeamID

The team this commitment is a part of (a user can be on multiple teams)

globally unique identifier

None.

UserID

The user this commitment is assigned to

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": "e4ffb901-1c65-405a-ad2a-5b66681f0eaa",
  "Text": "sample string 2",
  "Completed": true,
  "PeriodStartDate": "2024-11-21T01:46:57.7078553-05:00",
  "GoalID": "953f601c-ea60-4643-99d5-f98662925cfb",
  "TeamID": "2818932a-5725-4a1c-b906-bc46b2d9d04b",
  "UserID": "e9938cf5-588a-4e69-b090-6d82f985828c"
}