Represents a goal a user on the Capsule account is working towards. Goals can be broken down into multiple goal periods, each representing a duration of time as specified by the goal frequency field as detailed below.
| Name | Type | Description | |
|---|---|---|---|
| id | Long | Read only | The id of this goal. | 
| name | String | Required | The name of this goal. | 
| frequency | String | Required | The frequency of goal periods this goal will be broken down into. Accepted values are:  | 
| startOn | Date | Required | The start date of this goal. | 
| endOn | Date | Required | The end date of this goal. | 
| type | String | Required | The type of this goal. Accepted goal type ID values are: 
 | 
| value | Double | Required | The value of this goal. Has to be an integer if goal  | 
| currency | String | The currency the goal  | |
| user | Nested User | Required | The user this goal is assigned to. | 
| status | String | Read only | The status of this goal. Accepted values are:  | 
| pipeline | Nested Pipeline | The pipeline this goal belongs to. Note that only one of  | |
| milestone | Nested Milestone | The milestone this goal belongs to. Note that only one of  | |
| createdAt | Date | Read only | The ISO date/time when this goal was created. | 
| updatedAt | Date | Read only | The ISO date/time when this goal was last updated. |