Milestones
A milestone is a named marker on a single day of a project row on the Forecast board — a kickoff, a launch, a client review. This page covers reading the milestones a window holds, reading one back, and creating, renaming, moving and deleting one.
The milestone object
| Attribute | Type | Description |
|---|---|---|
id |
integer | Unique ID for the milestone. |
name |
string | Name of the milestone, up to 255 characters. |
date |
date | The single day the milestone marks. Any day of the week is allowed. |
project_id |
integer | The project the milestone sits on. The project is always on the account’s Forecast board, since a milestone the reads would not serve cannot be written. |
updated_at |
datetime | Date and time the milestone was last updated. Use the ISO 8601 Format. |
updated_by_id |
integer | The person who last wrote the milestone, which is the caller on every write made through this API. null when the row was last written outside the board. |
Required permissions
The account must have the Forecast board and be on the permissions framework the
caller’s scopes are written in, and the caller needs a Forecast seat and a
Forecast claim that gives them a board scope — a read claim, or a write claim,
which grants the same view. A caller without the board answers 403 with
Forecast is not enabled for this account; a caller without the seat or the
claim answers 403 with Forecast is not enabled for this user.
A write additionally needs a Forecast write claim and an account that is not
read-only. A caller who can read the board but not write it answers 403 with
Forecast editing access is required.
Writes are then bounded per record, by the caller’s edit scope. A caller scoped
to the whole plan may write a milestone on any project on the board; a caller
scoped to the projects they manage may write only milestones on those projects;
a caller scoped to their own schedule may never write a milestone, because a
milestone belongs to a project rather than to a person. A record outside the
caller’s write scope answers 404 with Record not found, exactly as an unknown
id does.
The read scope comes from the token’s user, never from a request parameter, and the milestones a caller sees are the ones on the projects their board shows.
The shared Forecast gates, the beta contract and the window rules are on the Forecast API overview.
List milestones in a window
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Returns the milestones dated inside a window, from every project the caller’s
board shows, ordered by date and then by id. Both bounds are inclusive, so a
milestone dated exactly on from or to is in the list.
There is no project filter: the collection is the caller’s whole board over the
window, and a project_id or scope sent in the query string is ignored rather
than honoured — the scope is resolved from the token. A milestone on a project
the caller cannot see is absent from the list rather than redacted.
The response contains an object with a milestones property that contains an
array of up to per_page milestone objects, plus the pagination properties and
the two truncation fields. truncated reports whether the board’s own project
list was cut at 2,500 projects, which is the only cap that can omit milestones
from this list; truncation.projects carries that cap when it was reached and
null otherwise. A page past the last one answers an empty array with the
window’s total_entries.
GET /v2/forecast/milestones
| Parameter | Type | Description |
|---|---|---|
from |
date | First day of the window, inclusive. Send both bounds or neither; with neither, the window is the account’s own calendar day ± 9 months. |
to |
date | Last day of the window, inclusive. from cannot be later than to, and the window cannot span more than 24 months. |
page |
integer | The page number to use in pagination. (Default: 1) |
per_page |
integer | The number of records to return per page. Can range between 1 and 2000. (Default: 2000) |
cursor |
string | Not supported: this collection is paged by offset only, so any cursor is refused with 422 rather than answered with page one. |
updated_since |
datetime | Not supported: this collection is windowed by date, not by row write time, so the filter is refused with 422. |
Example Request:
curl "https://api.harvestapp.com/v2/forecast/milestones?from=2026-07-01&to=2026-07-31" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"milestones": [
{
"id": 902114,
"name": "Kickoff",
"date": "2026-07-06",
"project_id": 1428577,
"updated_at": "2026-06-28T09:14:02Z",
"updated_by_id": 3188442
},
{
"id": 902121,
"name": "Launch",
"date": "2026-07-31",
"project_id": 1428580,
"updated_at": "2026-07-02T16:41:55Z",
"updated_by_id": 3188451
}
],
"truncated": false,
"truncation": {
"projects": null
},
"per_page": 2000,
"total_pages": 1,
"total_entries": 2,
"next_page": null,
"previous_page": null,
"page": 1,
"links": {
"first": "https://api.harvestapp.com/v2/forecast/milestones?from=2026-07-01&to=2026-07-31&page=1&per_page=2000",
"next": null,
"previous": null,
"last": "https://api.harvestapp.com/v2/forecast/milestones?from=2026-07-01&to=2026-07-31&page=1&per_page=2000"
}
}Retrieve a milestone
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Returns one milestone and a 200 OK response code. It is the read a create’s
Location header points at, and it applies the collection read’s visibility, so
a milestone the list would hide — another company’s, or one on a project no
longer on the caller’s board — answers 404 with Record not found.
GET /v2/forecast/milestones/{MILESTONE_ID}
Example Request:
curl "https://api.harvestapp.com/v2/forecast/milestones/902114" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"id": 902114,
"name": "Kickoff",
"date": "2026-07-06",
"project_id": 1428577,
"updated_at": "2026-06-28T09:14:02Z",
"updated_by_id": 3188442
}Create a milestone
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Creates a milestone and returns it with a 201 Created response code and a
Location header holding the URL of the new milestone. The body answered is the
same field set show serves, so the Location reads back the row that was
created.
company_id and updated_by_id are server-set and ignored if sent: the account
comes from the token and the author from the caller. A write does not touch the
project it belongs to — no project updated_at moves, no notification is sent,
and no Activity Log entry is written.
project_id must name a project on the account’s Forecast board that the caller
may write. A project the board does not serve — unknown, archived, or never added
to the board — is refused with 422, because a milestone there could never be
read back; a project the caller may not write answers 404 instead, so the
status cannot be used to probe which projects exist.
A milestone is not idempotent: two milestones on the same project and the same
date are refused by the model, so replaying a create answers 422 rather than
creating a duplicate.
POST /v2/forecast/milestones
| Parameter | Type | Description |
|---|---|---|
name |
string | Required. Name of the milestone, up to 255 characters. |
date |
date | Required. The day the milestone marks, in YYYY-MM-DD form, between 1000-01-01 and 9999-12-31. Any day of the week is allowed. |
project_id |
integer | Required. The project to put the milestone on. It must be a project on the account’s Forecast board that the caller may write. |
Example Request:
curl -X POST "https://api.harvestapp.com/v2/forecast/milestones" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp ([email protected])" \
-d '{"name": "Kickoff", "date": "2026-07-06", "project_id": 1428577}'
Example Response:
{
"id": 902114,
"name": "Kickoff",
"date": "2026-07-06",
"project_id": 1428577,
"updated_at": "2026-06-28T09:14:02Z",
"updated_by_id": 3188442
}Update a milestone
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Renames a milestone, moves its date, moves it to another project, or does several
of those at once. Returns the milestone with a 200 OK response code. The body is
partial: an attribute it omits keeps its stored value, and a body that repeats the
stored values is a no-op that answers the same row.
A move is gated on both projects: the project the milestone leaves and the one it
lands on must both be projects the caller may write, so a caller who may edit the
source but not the destination is refused and the row is unchanged. A body that
does not name project_id at all is not a move, and a body that names an empty
one is refused rather than reaching the database.
The record decides before the body does: an unknown id, another company’s
milestone, or one on a project the caller’s board does not show answers 404 with
Record not found even when the body is also malformed.
PATCH /v2/forecast/milestones/{MILESTONE_ID}
| Parameter | Type | Description |
|---|---|---|
name |
string | Name of the milestone, up to 255 characters. |
date |
date | The day the milestone marks, in YYYY-MM-DD form, between 1000-01-01 and 9999-12-31. |
project_id |
integer | The project to move the milestone to. It must be a project on the account’s Forecast board that the caller may write. |
Example Request:
curl -X PATCH "https://api.harvestapp.com/v2/forecast/milestones/902114" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp ([email protected])" \
-d '{"name": "Client kickoff", "date": "2026-07-08"}'
Example Response:
{
"id": 902114,
"name": "Client kickoff",
"date": "2026-07-08",
"project_id": 1428577,
"updated_at": "2026-06-30T11:42:19Z",
"updated_by_id": 3188442
}Delete a milestone
Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes
Harvest-Api-Stability: beta.
Deletes a milestone and returns the milestone it deleted with a 200 OK response
code — the same body show served, not a 204 No Content and not an empty body,
so a client can confirm which row went. Nothing references a milestone, so the
delete is real rather than an archive, and a second delete of the same id answers
404 with Record not found.
A milestone on a project the caller’s board does not show, or one outside the
caller’s write scope, cannot be deleted and answers 404 with Record not found.
DELETE /v2/forecast/milestones/{MILESTONE_ID}
Example Request:
curl -X DELETE "https://api.harvestapp.com/v2/forecast/milestones/902114" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Harvest-Account-Id: $ACCOUNT_ID" \
-H "User-Agent: MyApp ([email protected])"
Example Response:
{
"id": 902114,
"name": "Client kickoff",
"date": "2026-07-08",
"project_id": 1428577,
"updated_at": "2026-06-30T11:42:19Z",
"updated_by_id": 3188442
}Errors
| Status | When |
|---|---|
400 |
A page or per_page value is not an integer or is outside its range (Invalid page parameter: must be an integer, Invalid page parameter: must be greater than 0, Invalid page parameter: must be from 1 to 2305843009213693, Invalid per_page parameter: must be an integer, Invalid per_page parameter: must be from 1 to 2000), or an updated_since is not an ISO 8601 datetime (Invalid updated_since datetime provided: "<value>"). |
401 |
Authentication failed: Authentication failed for API request. |
403 |
The account does not have the Forecast board, or is not on the permissions framework its scopes are written in (Forecast is not enabled for this account); the caller has no Forecast seat or no Forecast read claim (Forecast is not enabled for this user); the caller may read the board but not write it (Forecast editing access is required). |
404 |
The id names no milestone this caller can reach, with the same answer and the same message in every case — Record not found: an unknown id, a malformed id such as 902114abc, another company’s milestone, a milestone on a project off the caller’s board, a milestone outside the caller’s write scope, or a milestone already deleted. Also returned for a project_id on a write that names a project the caller may not write. |
409 |
The account’s Forecast schedule is being imported, so no write is accepted: Your Forecast schedule is being imported, so this change wasn’t saved. Try again once the import finishes. with error_code: "migration_in_progress". Or the milestone is locked by a concurrent edit: That milestone is being changed by someone else. Try again. with error_code: "locked". |
415 |
A request body was sent with a media type other than JSON or form data: Content-Type header required to be application/json, got ... |
422 |
On the collection read: a malformed window (error_code: "invalid_window", with missing window bound, from must precede to, window exceeds 24 months, or invalid date: <value>); a cursor (Invalid cursor parameter: this endpoint does not support cursor pagination, and, from the shared validator that runs first, Invalid cursor parameter, Invalid cursor parameter: must not be empty, Invalid cursor parameter: must be a valid base64 encoded JSON string); or an updated_since (The updated_since parameter is not supported on this endpoint). On a write: a date that is not a YYYY-MM-DD date (Invalid date date provided: '<value>') or that the date column cannot hold (date must be a date between 1000-01-01 and 9999-12-31); a field sent as an array, object or boolean where one value is expected (Invalid name parameter: must be a single value, Invalid project_id parameter: must be a single value, Invalid date parameter: must be a single value); a project_id that is not a plain id (project_id must be a positive project id); a project_id that names no project the reads serve — missing, blank, unknown, archived, or not on the board (Invalid project_id parameter: must be a project id on this account's Forecast board, with errors containing Project must exist); or a milestone the model refuses (Name can't be blank, Name is too long (maximum is 255 characters), Date can't be blank, Date already has a milestone on this project). Every write refusal above carries error_code: "invalid_milestone" and its messages in errors, except the two date preflight refusals, which answer message alone. |