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
| Needs | For |
|---|---|
| Company > Goals Read on the key | list, get, list_milestones |
| Company > Goals Write on the key | create, update, create_milestone, update_milestone |
| Company > Goals Delete on the key | delete, 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
action | Route | What it does |
|---|---|---|
list | GET /api/v2/goals | Goals, newest first, each with its milestones, child goals and boards. Filter with goal_type, owner_type and status |
get | GET /api/v2/goals/{goal_id} | One goal with its milestones, child goals, parent and boards |
create | POST /api/v2/goals | Creates a goal. Needs title. A new goal is active |
update | PUT /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 |
delete | DELETE /api/v2/goals/{goal_id} | Deletes the goal for good |
list_milestones | GET /api/v2/goals/milestones/list | Milestones by due date. Not paged, so narrow it with goal_id, quarter, department_id or status |
create_milestone | POST /api/v2/goals/milestones | Creates a milestone. Needs title. A new milestone is not_started |
update_milestone | PUT /api/v2/goals/milestones/{milestone_id} | Changes the fields you send and empties the ones in clear_fields |
delete_milestone | DELETE /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
| Parameter | Type | Used by | Notes |
|---|---|---|---|
action | string | All | Required |
goal_id | string (UUID) | get, update, delete, list_milestones, create_milestone, update_milestone | Required for get, update and delete. Filters list_milestones, and links a milestone to the goal |
milestone_id | string (UUID) | update_milestone, delete_milestone | Required for both |
title | string | create, update, create_milestone, update_milestone | Required for both creates. A goal’s title is at most 500 characters |
description | string | create, update, create_milestone, update_milestone | A goal’s description is at most 10,000 characters |
goal_type | string | create, update, list | yearly (the default), quarterly or stretch |
owner_type | string | create, update, list, create_milestone | For a goal, company (the default), department or individual. For a milestone, free text (default human) |
owner_id | string | create, update, create_milestone | Free text up to 255 characters: a user id, department id or team name, depending on owner_type |
measurables | array of { id, metric, targetValue, currentValue, unit } | create, update | At most 50. Replaces the stored list |
status | string | update, update_milestone, list, list_milestones | Goals: 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_date | string | create, update, create_milestone, update_milestone | YYYY-MM-DD or ISO 8601 |
end_date | string | create, update | YYYY-MM-DD or ISO 8601 |
due_date | string | create_milestone, update_milestone | YYYY-MM-DD or ISO 8601 |
parent_goal_id | string (UUID) | create, update | The parent goal. Must be one of your goals and not the goal itself |
quarter | string | create_milestone, update_milestone, list_milestones | Free text, such as 2026-Q4 |
department_id | string (UUID) | create_milestone, update_milestone, list_milestones | Must be one of your departments |
measurable_outcome | string | create_milestone, update_milestone | |
percent_complete | integer | update_milestone | 0 to 100 |
subtasks | array of { id, title, done } | update_milestone | At most 50. Replaces the stored list |
revenue_target, cost_target | number | create_milestone, update_milestone | |
revenue_actual, cost_actual | number | update_milestone | |
roi_target | number | create_milestone, update_milestone | A percentage, up to 999.99 |
linked_record_type, linked_record_id | string | create_milestone, update_milestone | A record the milestone tracks |
limit | integer | list | 1 to 200. Default 50 |
cursor | string | list | The nextCursor from the previous page |
clear_fields | array of strings | update, update_milestone | The fields to empty. See below |
Clearing fields
Name the fields to empty in clear_fields; a null argument leaves a field alone.
updatecan emptydescription,owner_id,start_date,end_dateandparent_goal_id. Clearingparent_goal_iddetaches the goal from its parent.update_milestonecan emptydescription,quarter,measurable_outcome,start_date,due_date,goal_id,department_id, the four amounts androi_target,linked_record_typeandlinked_record_id. Clearinggoal_idordepartment_idunlinks the milestone.- To empty
measurablesorsubtasks, send an empty list. The creates refuseclear_fields.
Refusals
| Code | Why |
|---|---|
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