Skill: Manage Goals

Reference for the Manage Goals skill, which lists, reads, creates, updates and deletes your company goals and their milestones.

The Manage Goals skill lets an agent read and manage your company goals and their milestones, for example to add a quarterly goal or record progress on a milestone.

Key and role

NeedsFor
Company > Goals Read on the keylist, get, list_milestones
Company > Goals Write on the keycreate, update, create_milestone, update_milestone
Company > Goals Delete on the keydelete, delete_milestone
A key creator whose role can write goals (every built-in role can)Every write

The milestone actions refuse a key whose creator’s access is limited to specific dimension values (see Unscoped callers only).

Actions

actionRouteWhat it does
listGET /api/v2/goalsGoals, newest first, each with its milestones, child goals and boards. Filter with goal_type, owner_type and status
getGET /api/v2/goals/{goal_id}One goal with its milestones, child goals, parent and boards
createPOST /api/v2/goalsCreates a goal. Needs title. A new goal is active
updatePUT /api/v2/goals/{goal_id}Changes the fields you send and empties the ones in clear_fields. This is where a goal’s status changes
deleteDELETE /api/v2/goals/{goal_id}Deletes the goal for good
list_milestonesGET /api/v2/goals/milestones/listMilestones by due date. Not paged, so narrow it with goal_id, quarter, department_id or status
create_milestonePOST /api/v2/goals/milestonesCreates a milestone. Needs title. A new milestone is not_started
update_milestonePUT /api/v2/goals/milestones/{milestone_id}Changes the fields you send and empties the ones in clear_fields
delete_milestoneDELETE /api/v2/goals/milestones/{milestone_id}Deletes the milestone for good

When update_milestone sets the status to complete or cancelled, Horizon stamps the completed date. If it gives revenue_target, revenue_actual and a due date that has passed, with the actual under 80% of the target and no status, the milestone becomes at_risk.

Parameters

ParameterTypeUsed byNotes
actionstringAllRequired
goal_idstring (UUID)get, update, delete, list_milestones, create_milestone, update_milestoneRequired for get, update and delete. Filters list_milestones, and links a milestone to the goal
milestone_idstring (UUID)update_milestone, delete_milestoneRequired for both
titlestringcreate, update, create_milestone, update_milestoneRequired for both creates. A goal’s title is at most 500 characters
descriptionstringcreate, update, create_milestone, update_milestoneA goal’s description is at most 10,000 characters
goal_typestringcreate, update, listyearly (the default), quarterly or stretch
owner_typestringcreate, update, list, create_milestoneFor a goal, company (the default), department or individual. For a milestone, free text (default human)
owner_idstringcreate, update, create_milestoneFree text up to 255 characters: a user id, department id or team name, depending on owner_type
measurablesarray of { id, metric, targetValue, currentValue, unit }create, updateAt most 50. Replaces the stored list
statusstringupdate, update_milestone, list, list_milestonesGoals: draft, active, on_track, at_risk, off_track, complete or cancelled. Milestones: not_started, active, on_track, at_risk, off_track, complete or cancelled. Refused on both creates
start_datestringcreate, update, create_milestone, update_milestoneYYYY-MM-DD or ISO 8601
end_datestringcreate, updateYYYY-MM-DD or ISO 8601
due_datestringcreate_milestone, update_milestoneYYYY-MM-DD or ISO 8601
parent_goal_idstring (UUID)create, updateThe parent goal. Must be one of your goals and not the goal itself
quarterstringcreate_milestone, update_milestone, list_milestonesFree text, such as 2026-Q4
department_idstring (UUID)create_milestone, update_milestone, list_milestonesMust be one of your departments
measurable_outcomestringcreate_milestone, update_milestone
percent_completeintegerupdate_milestone0 to 100
subtasksarray of { id, title, done }update_milestoneAt most 50. Replaces the stored list
revenue_target, cost_targetnumbercreate_milestone, update_milestone
revenue_actual, cost_actualnumberupdate_milestone
roi_targetnumbercreate_milestone, update_milestoneA percentage, up to 999.99
linked_record_type, linked_record_idstringcreate_milestone, update_milestoneA record the milestone tracks
limitintegerlist1 to 200. Default 50
cursorstringlistThe nextCursor from the previous page
clear_fieldsarray of stringsupdate, update_milestoneThe fields to empty. See below

Clearing fields

Name the fields to empty in clear_fields; a null argument leaves a field alone.

  • update can empty description, owner_id, start_date, end_date and parent_goal_id. Clearing parent_goal_id detaches the goal from its parent.
  • update_milestone can empty description, quarter, measurable_outcome, start_date, due_date, goal_id, department_id, the four amounts and roi_target, linked_record_type and linked_record_id. Clearing goal_id or department_id unlinks the milestone.
  • To empty measurables or subtasks, send an empty list. The creates refuse clear_fields.

Refusals

CodeWhy
NOT_FOUND (404)No goal has that goal_id in your organization
CIRCULAR_HIERARCHY (400)parent_goal_id is the goal itself
PARENT_GOAL_NOT_FOUND (400)parent_goal_id isn’t one of your goals
GOAL_NOT_FOUND (400)A milestone’s goal_id isn’t one of your goals
DEPARTMENT_NOT_FOUND (400)department_id isn’t one of your departments

Related: Company Goals | Company skills | Manage Marketing Assets