Goal

Use this API to create, update, and get a user's goals from Cornerstone Performance. You can also use this API to update a user's progress on a goal.

Create

Use this endpoint to create new user goals. The same rules that the Cornerstone UI enforces while creating user goals also apply for the API. For additional details on creating user goals through the UI, please refer to this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.

  • You can create only one goal per request using this API.
  • If a particular field is configured as 'Read-Only (Assigned Goals)' under the Goal Configuration settings (by Division) in your Cornerstone portal, that field cannot be set using this API.
  • Tasks and targets cannot be set using this API if they are not enabled under the Goal Configuration settings (by Division) in your Cornerstone portal using the 'Include' checkbox.
  • The weight of all tasks and targets within a goal must add up to 100%. Note that you can only set the weight using the API if the 'Allow tasks and targets to be individually weighted inside of a goal' setting under Goal Preferences is enabled in your Cornerstone portal.
  • Goal perspective and category values included in the API request body must be valid values configured in your Cornerstone portal. For more information about configuring perspectives and categories, please see this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.
  • While this API allows you to set the progress for a goal and tasks and set the actual value for targets while creating the goal, you cannot use it to update progress and actual value on an existing goal. To update progress and actual value, please use the Update Goal Progress API.

Permission Required: Goals - Create

OAuth 2.0 Scope: goal:create

Error Descriptions

Handled Error List

Error TypesError Message
PermissionDeniedProvided user does not have application permissions and/or constraints to perform this operation.
MissingArgumentThe following Arguments are missing: GoalItem
CustomExceptionGoal Title Missing.
CustomExceptionGoal Assignment Missing.
CustomExceptionManaged By User required.
CustomExceptionInvalid Managed By User.
CustomExceptionGoal Start Date Missing.
CustomExceptionGoal Target Date Missing.
CustomExceptionInvalid Goal Start Date.
CustomExceptionInvalid Goal Target Date.
CustomExceptionTarget Date must be after Start Date.
CustomExceptionPerspective Missing.
CustomExceptionInvalid Perspective.
CustomExceptionInvalid Category Item.
CustomExceptionGoal Weight must be between 0 and 100.
CustomExceptionInvalid AllowOtherUsersToSeeAndAlignWithThisGoal.
CustomExceptionTask Description Missing.
CustomExceptionTask Start Date Missing.
CustomExceptionTask Due Date Missing.
CustomExceptionInvalid Task Start Date.
CustomExceptionInvalid Task Due Date.
CustomExceptionTask Due Date must be after Start Date.
CustomExceptionTask Start Date must be within the Goals date range.
CustomExceptionTask Due Date must be within the Goals date range.
CustomExceptionTask Weight must be between 0 and 100.
CustomExceptionTarget Description Missing.
CustomExceptionTarget Start Date Missing.
CustomExceptionTarget Due Date Missing.
CustomExceptionInvalid Target Start Date.
CustomExceptionInvalid Target Due Date.
CustomExceptionTarget Due Date must be after Start Date.
CustomExceptionTarget Start Date must be within the Goals date range.
CustomExceptionTarget Due Date must be within the Goals date range.
CustomExceptionTarget Weight must be between 0 and 100.
CustomExceptionInvalid Target Type.
CustomExceptionThreshold field is disabled.
CustomExceptionStretch field is disabled.
CustomExceptionThe weights for all components must add up to 100%.
CustomExceptionOU Not Found.
CustomExceptionInvalid OU Type.
CustomExceptionInvalid User.
CustomExceptionInvalid Assign To User/Ou.

Details

Use this endpoint to retrieve details of user goals from your Cornerstone portal.

Note that if you are searching by Title alone, then the results will include only those Goals which are directly assigned to the users. It will not include Manager, Division & Company Goals.

Permission Required: Goals - Create

OAuth 2.0 Scope: goal:read

Error Descriptions

Handled Error List

Error TypesError Message
Permission DeniedProvided user does not have application permissions and/or constraints to perform this operation.
CustomException.Either Goal Title or Goal User Id is required.
CustomException.Start Date Missing.
CustomException.End Date Missing.
CustomExceptionInvalid Start Date.
CustomExceptionInvalid End Date.
CustomExceptionInvalid User.

Update

Use this endpoint to update existing user goals in your Cornerstone portal. The same rules that the Cornerstone UI enforces while creating user goals also apply for the API. For additional details on creating user goals through the UI, please refer to this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.

  • If a particular field is configured as 'Read-Only (Assigned Goals)' under the Goal Configuration settings (by Division) in your Cornerstone portal, that field cannot be updated using this API.
  • Tasks and targets cannot be updated using this API if they are not enabled under the Goal Configuration settings (by Division) in your Cornerstone portal using the 'Include' checkbox.
  • The weight of all tasks and targets within a goal must add up to 100%. Note that you can only update the weight using the API if the 'Allow tasks and targets to be individually weighted inside of a goal' setting under Goal Preferences is enabled in your Cornerstone portal.
  • Goal perspective and category values included in the API request body must be valid values configured in your Cornerstone portal. For more information about configuring perspectives and categories, please see this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.
  • While this API allows you to update the progress for a goal and task and update the actual value for a target, it does not support updating progress in certain scenarios such as when a goal has an approval workflow or when the goal does not have any tasks or targets tied to it. Please use the 'Update Goal Progress' API if the only operation you intend to perform is to update progress made by a user on a goal.

Permission Required: Goals - Create

OAuth 2.0 Scope: goal:updatefull

Error Descriptions

Handled Error List

Error TypesError Message
MissingArgumentThe following Arguments are missing: GoalItem
PermissionDeniedProvided user does not have application permissions and/or constraints to perform this operation.
CustomExceptionGoal Title Missing.
CustomExceptionUser Id Missing.
CustomExceptionInvalid User.
CustomExceptionMultiple Goal Found for the same Title.
CustomExceptionGoal not found.
CustomExceptionGoal Start Date Missing.
CustomExceptionGoal Target Date Missing.
CustomExceptionInvalid Goal Start Date.
CustomExceptionInvalid Goal Target Date.
CustomExceptionTarget Date must be after Start Date.
CustomExceptionPerspective Missing.
CustomExceptionInvalid Perspective.
CustomExceptionInvalid Category Item.
CustomExceptionGoal Weight must be between 0 and 100.
CustomExceptionInvalid AllowOtherUsersToSeeAndAlignWithThisGoal.
CustomExceptionTask Description Missing.
CustomExceptionTask Start Date Missing.
CustomExceptionTask Due Date Missing.
CustomExceptionInvalid Task Start Date.
CustomExceptionInvalid Task Due Date.
CustomExceptionTask Due Date must be after Start Date.
CustomExceptionTask Start Date must be within the Goals date range.
CustomExceptionTask Due Date must be within the Goals date range.
CustomExceptionTask Weight must be between 0 and 100.
CustomExceptionTarget Description Missing.
CustomExceptionTarget Start Date Missing.
CustomExceptionTarget Due Date Missing.
CustomExceptionInvalid Target Start Date.
CustomExceptionInvalid Target Due Date.
CustomExceptionTarget Due Date must be after Start Date.
CustomExceptionTarget Start Date must be within the Goals date range.
CustomExceptionTarget Due Date must be within the Goals date range.
CustomExceptionTarget Weight must be between 0 and 100.
CustomExceptionInvalid Target Type.
CustomExceptionThreshold field is disabled.
CustomExceptionStretch field is disabled.
CustomExceptionThe weights for all components must add up to 100%.

Update Goal Progress

Use this endpoint to update goal progress, one goal at a time. The same rules that the Cornerstone UI enforces while updating goals also apply for the API. More specifically,

  • Progress can be updated at the goal level if the goal does not have a task or target.
  • If a goal has a task, progress must be updated at the task level.
  • If a goal has a target, progress must be updated by modifying the 'actual value' for the target.
  • If a goal has tasks and targets defined, progress must be updated by modifying the 'progress' and 'actual value' respectively.
  • If you do not provide an 'actual value' in the request payload, the API defaults the 'actual value' to the 'start value'.
  • Progress and actual value cannot be updated for goals in draft status.
  • Actual value provided in the request body must be greater than start value defined for the goal target.
  • If the Progress field is configured as Read-Only in the Goal Configuration settings (by Division) in your Cornerstone portal, the overall goal completion progress cannot be updated using the API. The Progress field can be configured as Read-Only for goals that are uploaded to the system via a data feed.
  • If the Task and Target fields are configured as Read-Only in the Goal Configuration settings (by Division), Task progress and Target actual value cannot be updated using the API. Task progress and Target actual value can be configured as Read-Only for goals that are uploaded to the system via a data feed and non-shared goals that are assigned to a user. Also, task progress can be configured as Read-Only for goals that are imported from the Goal Library.
  • Depending on the configuration of the portal (backend setting), the progress percentage field may accept up to two decimal places.
  • Goal progress can exceed 100% if the 'Allow goal progress to exceed 100%' setting is checked under Goal Preferences (by Division) in your Cornerstone portal.

For additional details on updating goal progress through the UI, please refer to this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.

Permission Required: Goals - Create

OAuth 2.0 Scope: goalprogress:updatefull

Error Descriptions

Handled Error List

Error MessageError Description
The following Arguments are missing: GoalItemMissing 'GoalItem' in the request body.
Provided user does not have application permissions and/or constraints to perform this operation.User does not have the 'Goals - Create' permission.
GoalId or Title missingEither GoalId or Title must be provided in the request body..
UserId missingUserId must be provided in the request body.
Invalid userUserId provided in the request body is not present in the portal.
Multiple Goal Found for the same TitleGoalId was not provided in the request body. Title was provided in the request body, however, there are multiple goals with the same title for the user.
Goal not foundGoalId or Title provided in the request body is not found to be associated with the UserId included in the request.
Cannot update goal progress. Task or Target presentValue included for GoalProgress, but task or target is present for the goal. Progress must be reported at the task or target level.
Task not foundThe description provided in the request body for the task is not found to be associated with the UserId and GoalId included in the request.
Target not foundThe description provided in the request body for the target is not found to be associated with the UserId and GoalId included in the request.
Cannot update goal progress. Goal is in draft statusProgress cannot be updated for goals in draft status.
Goal progress cannot exceed 100%Values provided in GoalProgress, TaskProgress or ActualValue will cause the overall goal progress to exceed 100%. But the 'Allow goal progress to exceed 100%' setting is not checked under Goal Preferences for the user's division.
Goal progress cannot be updatedThe Progress field is set as Read-Only in the Goal Configuration settings for the user's division. The overall goal completion progress cannot be updated.
Task progress cannot be updatedThe Task field is set as Read-Only in the Goal Configuration settings for the user's division. Task progress cannot be updated.
Target actual value cannot be updatedThe Target field is set as Read-Only in the Goal Configuration settings for the user's division. Target actual value cannot be updated.

Cancel Goal

Use this endpoint to update goal statuses to cancelled, one goal at a time. The same rules that the Cornerstone UI enforces while updating goals also apply for the API. More specifically,

  • You can update only one goal per request using this API.
  • You can update the status if Goal Progress is disabled by the administrator (i.e., the Progress field is disabled in Goals Configuration) and a goal has no tasks or targets.

For additional details on updating goal progress through the UI, please refer to this help article. You will need to be logged into your Cornerstone portal to access this link.

Permission Required: Goals - Create

OAuth 2.0 Scope: goal:updatefull

Error Descriptions

Handled Error List

Error TypesError Message
Permission DeniedProvided user does not have application permissions and/or constraints to perform this operation.
CustomException.Either Goal Title or Goal User Id is required.
CustomExceptionInvalid User.

Lock Goals

Use this endpoint to lock or unlock goals, one goal at a time. The same rules that the Cornerstone UI enforces while updating goals also apply for the API. More specifically,

  • Managers may lock a goal at the end of the goal period or at the beginning of a review period.

When goals are locked, they cannot be updated either from the UI or the API until unlocked once again.

For additional details on updating goal progress through the UI, please refer to this help articleopen in new window. You will need to be logged into your Cornerstone portal to access this link.

To disable the Lock Goal Results functionality, contact Global Product Support.

Permission Required: Goals - Create

OAuth 2.0 Scope: goal:updatefull

Error Descriptions

Handled Error List

Error TypesError Message
Permission DeniedProvided user does not have application permissions and/or constraints to perform this operation.
CustomException.Either Goal Title or Goal User Id is required.
CustomExceptionInvalid User.