PATCH api/v1/Goals/{id}
Undeletes a goal by its ID
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID of the goal to undelete |
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
GoalName | Description | Type | Additional information |
---|---|---|---|
ID |
The goal's ID |
globally unique identifier |
None. |
Name |
The goal's name/title |
string |
None. |
Description |
The goal's description |
string |
None. |
GoalType |
The goal's type/category: WIG = 0, SubWIG = 1, Lead = 2 |
byte |
None. |
DisplayType |
The goal's value storage type: Number = 5, Money = 9, Percentage = 17 |
byte |
None. |
DisplayColor |
The goal's current state color: Red = 255, Yellow = 0, Green = 1 |
byte |
None. |
BoundaryType |
The goal's boundary condition type: Meet or Exceeds = 0, Not Greater Than = 1 |
byte |
None. |
CurrentValue |
The goal's current value |
decimal number |
None. |
TargetValue |
The current target value for this goal with respect to the current UTC date and goal waypoints. |
decimal number |
None. |
DisplayValue |
The goal's display value. This could be different than the current value if it is an aggregate or composite goal. |
decimal number |
None. |
StartValue |
The value of the starting waypoint |
decimal number |
None. |
EndValue |
The value of the ending waypoint |
decimal number |
None. |
CurrentDecimalLength |
The decimal precision required when displaying the display or current value. This is NOT applied to the data value coming down from the server. |
integer |
None. |
TargetDecimalLength |
The decimal precision required when displaying the target value. This is NOT applied to the data value coming down from the server. |
integer |
None. |
FinalDecimalLength |
The decimal precision required when displaying the final value. This is NOT applied to the data value coming down from the server. |
integer |
None. |
TeamID |
The goal's team ID |
globally unique identifier |
None. |
YellowTolerance |
Yellow tolerance/variance value |
decimal number |
None. |
RedTolerance |
Red tolerance/variance value |
decimal number |
None. |
WaypointType |
Linear = 0, Step = 1, Periodstep = 2, Weekly Reset Daily Step = 3 |
integer |
None. |
InTeamChildrenIDs |
IN team goal child IDs |
Collection of globally unique identifier |
None. |
InTeamParentIDs |
IN team goal parent IDs |
Collection of globally unique identifier |
None. |
OutTeamChildrenIDs |
OUT of team goal child IDs |
Collection of globally unique identifier |
None. |
OutTeamParentIDs |
OUT of team goal parent IDs |
Collection of globally unique identifier |
None. |
IsRetired |
If the goal is retired |
boolean |
None. |
IsDeleted |
If the goal is deleted |
boolean |
None. |
IsFuture |
If the goal isn't active yet (future goal) |
boolean |
None. |
Response Formats
application/json, text/json
{ "ID": "1d4b442c-2618-4da0-88ff-da2ee6bd7f82", "Name": "sample string 2", "Description": "sample string 3", "GoalType": 64, "DisplayType": 64, "DisplayColor": 64, "BoundaryType": 64, "CurrentValue": 8.1, "TargetValue": 9.1, "DisplayValue": 10.1, "StartValue": 11.1, "EndValue": 12.1, "CurrentDecimalLength": 13, "TargetDecimalLength": 14, "FinalDecimalLength": 15, "TeamID": "c5761dd1-6f77-41a1-a27f-87bfb761d16e", "YellowTolerance": 17.1, "RedTolerance": 18.1, "WaypointType": 19, "InTeamChildrenIDs": [ "e3223903-83bb-47cf-abc0-af8d8721b921", "4d07cf9b-c13c-4898-bb9e-79aadfaea158" ], "InTeamParentIDs": [ "24983ada-2a65-4bd3-9948-f843162b7035", "47d1f065-47a2-4e37-a62d-424d1abbeccc" ], "OutTeamChildrenIDs": [ "59af5847-a7e4-4975-b841-44990a797b73", "e89515e1-d6db-40bb-a5ce-644cebaf4521" ], "OutTeamParentIDs": [ "f51e5bbf-cd1f-409b-bd51-fd93515ee5e8", "f4401bc5-c2fb-4b6c-85b9-3851532c0121" ], "IsRetired": true, "IsDeleted": true, "IsFuture": true }