Update Goal (v1.1)

Updates one goal for an employee and returns the updated goal as an object with a single goal property. Milestones appear on that object only when the goal has them. Setting progress to 100 percent can email the employee that the goal was completed. A caller who cannot edit the goal, including when the goal is closed, receives 403 and the goal is left unchanged. Cascading goals are not supported and return 400.

Use this for editing a goal's details, progress, and milestones together. For percent complete on a goal with no milestones, use Update Goal Progress (update-goal-progress) instead. For marking one milestone complete or incomplete, use Update Milestone Progress (update-goal-milestone-progress) instead. For replacing only the share list, use Update Goal Sharing (update-goal-sharing) instead.

Pass the internal employee ID from Employees > List Employees (list-employees). Employee # (employeeNumber) may target a different employee. Goal ids come from List Goals (list-goals). Alignment option ids come from Get Alignable Goal Options (get-alignable-goal-options). Employees the goal can be shared with come from List Goal Sharing Options (list-goal-share-options).

Note: Compared to Update Goal (v1) (update-goal-v1), this version can add, rename, and delete milestones. An omitted description or alignment keeps the stored value. milestonesEnabled turns milestones on, deletes them when false, or leaves milestones and progress unchanged when omitted.

OAuth Scopes: goal.write

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^\d+$

Internal employee ID of the employee who owns the goal. This is not Employee # (employeeNumber); an employee number may target a different employee. 0 is rejected. Ids come from Employees > List Employees (list-employees).

string
required
^\d+$

Id of the goal to update. 0 is rejected. Find ids with List Goals (list-goals).

Body Params

Send title, due date, and the share list. Omit description or alignment to keep the stored value. Omit milestones unless adding or renaming them.

string
required
length between 1 and 1024

Goal title. Empty and whitespace-only titles are rejected.

length ≤ 65536

Goal description. Omit the field to keep the stored description. Null clears it.

date
required

Due date in YYYY-MM-DD format.

integer
0 to 100

Completion percentage from 0 to 100. Ignored when milestonesEnabled is true, because progress is derived from milestones. When milestonesEnabled is false, defaults to 0 if omitted. When milestonesEnabled is omitted, existing progress is left unchanged unless this value is supplied.

Completion date in YYYY-MM-DD format. Applied when percent complete is updated to 100. Ignored when milestones are enabled.

sharedWithEmployeeIds
array of integers
required
length ≥ 1

Internal employee IDs the goal is shared with. Must include the goal owner's internal employee ID and must not be empty. Employee # (employeeNumber) may target a different employee.

sharedWithEmployeeIds*

Id of the goal this goal aligns with. Omit the field to keep the stored alignment. Null or 0 clears it. When the authenticated user is the goal owner, alignment is left unchanged even if this field is sent. Discover ids with Get Alignable Goal Options (get-alignable-goal-options).

Whether milestones are enabled. true derives progress from milestones. false deletes every existing milestone and makes progress manual via percentComplete. Omit the field to leave milestones and progress unchanged. milestones and deletedMilestoneIds are applied only when this is true.

deletedMilestoneIds
array of integers

Milestone ids to delete. Applied only when milestonesEnabled is true. Each id must belong to this goal.

deletedMilestoneIds
milestones
array of objects

Milestones to add or rename. Applied only when milestonesEnabled is true. Include id to rename that milestone. Omit id to add a new milestone. The goal cannot end up with more than 10 milestones.

milestones
Responses

Language
Credentials
OAuth2
Missing 1 required scope
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json