Board Projects

Board membership is the opt-in set behind the Forecast board: a project appears on the board only once it has been added, and each added project carries the colour its row is drawn in. This page documents the three writes that change that state — adding a project, removing it, and setting its colour — and the body all three answer. There is no read here: membership and colour are read back through the board window.

The board state object

Every write on this page answers the same three fields and nothing else. The body describes the project’s board state, not the project, so no project attribute other than the board colour is published.

Attribute Type Description
project_id integer Unique ID for the project the write acted on.
on_board boolean true when the project is on the board: it is an active project and it holds a membership row. An archived project keeps its membership but is not on the board, and neither is a project whose membership was just removed.
color string The project’s board colour, one of the palette names listed under the colour write, or null when none has been chosen. It is the colour after the write, and a membership write leaves it untouched.

All three actions answer 200 OK. None sets a Location header: nothing addressable is created, since no endpoint on this path reads a membership back, so the write answers the state it produced rather than a row a client cannot retrieve. Every response carries Harvest-Api-Stability: beta.

Required permissions

The account must have the Forecast board available, or hold it read-only, and must be on the permissions framework the board’s scopes are written in. The caller must hold a Forecast seat and a Forecast claim: the account-side refusal is 403 with Forecast is not enabled for this account, and the caller-side one is 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, and that refusal is answered even while an import is running.

Board state is shared, so the caller’s edit scope must reach past their own schedule: a claim scoped to the whole plan, or one scoped to the projects they manage. A caller whose claim scopes them to their own schedule — including a managed-scope caller who manages no project, which resolves to their own schedule — answers 403 with Not authorized!, and cannot add, remove or recolour anything.

Within that scope, each record is checked again. A caller scoped to the whole plan may write any project in the account. A caller scoped to the projects they manage may write only the projects they manage, and a project outside that set is answered 404 with Record not found — the same answer, byte for byte, that an id which does not exist gets, so the pair of statuses cannot be used to discover which projects the account has. A project still pushed to legacy Forecast is also outside the set when the caller may not create projects in Forecast.

The shared gates and the beta contract are on the Forecast API overview.

Add a project to the board

Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes Harvest-Api-Stability: beta.

Adds a project to the Forecast board and returns its board state with a 200 OK response code. The project appears on the board from then on; nothing on the project row itself changes.

Adding is idempotent. Adding a project that is already a member changes nothing, records no new membership, and answers the same 200 OK body with on_board true — a repeated create is a success, not a 409. A concurrent double add that races on the membership’s unique index is answered the same way.

Only an active project can be added. An archived project — including one that still holds a membership row — is refused with 404 and Record not found, because the board never lists it.

color is optional on this endpoint. Omitted, the project keeps the board colour it already had. An explicit null or an empty string clears it, and a palette name sets it — the same values the colour write below accepts. A colour that is not one of those is refused before anything is written, so a refused colour never leaves the project on the board.

POST /v2/forecast/projects
Parameter Type Description
project_id integer Required. The project to add, taken from the request body only. A value that is not a plain integer returns 422; a project that does not exist, belongs to another account, is archived, or is outside the caller’s write scope returns 404.
color string Optional. The project’s board colour: green, lime, yellow, brown, aqua, blue, indigo, purple, magenta, or gray. null or "" clears it, and omitting the key leaves the existing colour alone.

Example Request:

curl -X POST "https://api.harvestapp.com/v2/forecast/projects" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"project_id": 1428577, "color": "aqua"}'

Example Response:

{
  "project_id": 1428577,
  "on_board": true,
  "color": "aqua"
}

Remove a project from the board

Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes Harvest-Api-Stability: beta.

Removes a project from the Forecast board and returns its board state with a 200 OK response code. Only the membership row is deleted. The project’s scheduled assignments stay, and so does its board colour, so re-adding the project restores its row as it was.

Removing is idempotent. Removing a project that is not a member changes nothing and answers the same 200 OK body with on_board false.

Unlike adding, removing accepts an archived project — a project that was archived while on the board can still be taken off it — and its answer is on_board false either way, since an archived project is not on the board whether or not it holds a membership row.

DELETE /v2/forecast/projects/{PROJECT_ID}
Parameter Type Description
PROJECT_ID integer Required. The project’s ID, in the path. A value that is not a plain integer returns 404, as does a project that does not exist, belongs to another account, or is outside the caller’s write scope.

Example Request:

curl -X DELETE "https://api.harvestapp.com/v2/forecast/projects/1428577" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp ([email protected])"

Example Response:

{
  "project_id": 1428577,
  "on_board": false,
  "color": "blue"
}

Set a project’s board colour

Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes Harvest-Api-Stability: beta.

Sets the colour the project’s row is drawn in on the board and returns its board state with a 200 OK response code. The palette is green, lime, yellow, brown, aqua, blue, indigo, purple, magenta and gray; red and orange are deliberately not in it, because the board uses red for over-allocation.

The colour is written to the project’s colour column directly rather than through a full save, so the project’s updated_at does not move and no project-data sync is published to legacy Forecast.

An empty string and null both clear the colour, leaving it unset, and the board falls back to its own derived colour for the row. A whitespace-only string is refused rather than read as a clear, so a client that dropped the key, or sent a stray space, cannot wipe a saved colour by accident.

The key must be present in the request body. A missing key, a value that is not a string, and a whitespace-only string all return 422 with Invalid color parameter: required; must be a non-blank string, an empty string, or null, and the stored colour is unchanged.

A value outside the palette returns 422 with error_code unsupported_planning_color and the message Unsupported planning color., and the stored colour is unchanged.

Setting a colour does not require membership: a project that is not on the board can be recoloured, and the answer says so with on_board false.

PATCH /v2/forecast/projects/{PROJECT_ID}/color
Parameter Type Description
PROJECT_ID integer Required. The project’s ID, in the path. A value that is not a plain integer returns 404, as does a project that does not exist, belongs to another account, or is outside the caller’s write scope.
color string Required. The body key must be present. One of green, lime, yellow, brown, aqua, blue, indigo, purple, magenta or gray to set the colour; null or "" to clear it.

Example Request:

curl -X PATCH "https://api.harvestapp.com/v2/forecast/projects/1428577/color" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"color": "indigo"}'

Example Response:

{
  "project_id": 1428577,
  "on_board": true,
  "color": "indigo"
}

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 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 claim (Forecast is not enabled for this user); the caller may read the board but not write it, or the account is read-only (Forecast editing access is required); or the caller’s edit scope does not reach past their own schedule (Not authorized!).
404 The id names no project this caller can write, with the same answer and the same message in every case — Record not found: a malformed id such as 1428577abc, an unknown id, another company’s project, a project outside the caller’s write scope, or an archived project passed to POST /v2/forecast/projects.
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 membership row or project is locked by a concurrent write: That project is being changed by someone else. Try again. with error_code: "locked". Both are retryable, and the freeze answers before the project is looked up.
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 A project_id in the create body that is missing or not a plain integer: Invalid project_id parameter: must be an integer. A colour that is not a string, or is a whitespace-only string: Invalid color parameter: required; must be a non-blank string, an empty string, or null on the colour write, where the key is required, and Invalid color parameter: must be a non-blank string, an empty string, or null on the create, where it is optional. A colour off the palette: Unsupported planning color. with error_code: "unsupported_planning_color".

Still have questions? We’re happy to help!

Contact Us