PUT api/v1/Commitments/{id}

Updates an existing commitment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the commitment to be updated

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

The new values for the commitment

UpdateCommitment
NameDescriptionTypeAdditional information
Text

The new text for the commitment, leave empty or null to leave unchanged

string

None.

GoalID

The new Goal for the commitment, pass up null to leave unchanged

globally unique identifier

None.

Complete

The completed status of the commitment, pass up null to leave unchanged

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Text": "sample string 1",
  "GoalID": "a848e914-55c1-4833-9900-82672c6c8709",
  "Complete": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

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": "c344b037-072a-4901-8581-3741d63220a0",
  "Text": "sample string 2",
  "Completed": true,
  "PeriodStartDate": "2024-11-21T01:57:36.6360706-05:00",
  "GoalID": "47f52037-0fa4-4bc9-8910-a6cb45af60d4",
  "TeamID": "5157d779-0e86-43e8-b6fb-621af051f3fa",
  "UserID": "526ba745-785e-472e-98e4-ed19372446ce"
}