Scheduled Assignments

A scheduled assignment is one bar on a Forecast board: an assignee booked onto a project task, onto a placeholder, or onto a stretch of planned time off, over an inclusive range of days. This page covers reading the bars a window holds, creating, editing and deleting one, and the divide command that bisects it.

The scheduled assignment object

Attribute Type Description
id integer Unique ID for the assignment.
project_id integer The project the bar books work on. null on a time-off row.
user_id integer The person the bar is assigned to. null when the bar is assigned to a placeholder or a scheduled non-user, and on company-wide time off.
placeholder_id integer The placeholder the bar is assigned to, when a named but unfilled slot holds it rather than a person. null otherwise.
scheduled_non_user_id integer The person without a Harvest login the bar is assigned to, on accounts where that rollout is on. null otherwise.
task_assignment_id integer The project task the bar books against. null on a task-less bar and on time off.
task_name string Name of that task. null on a task-less bar and on time off.
task_archived boolean Whether the bar’s task has been archived. An archived task freezes the bar except for its hours and notes.
start_date date First day of the bar, inclusive.
end_date date Last day of the bar, inclusive. Equal to start_date on a one-day bar.
allocation integer Seconds booked per working day, between 36 (0.01h) and 86400 (24h). null on an all-day time-off row.
authored_total_seconds integer Total seconds the caller authored, in total input mode. null in day mode.
input_mode string Which number is the source of truth: day (the per-day allocation) or total (authored_total_seconds, spread over the bar’s working days).
is_time_off boolean Whether the bar is planned time off rather than project work.
active_on_days_off boolean Whether the bar books its hours on the assignee’s non-working days too.
repeated_assignment_set_id integer The repeating series this bar is one occurrence of. null on a standalone bar. Each occurrence is an ordinary assignment with its own id, so it is addressed by that id; this field only names the series it belongs to.
notes string Free-text note on the bar, up to 1000 characters. null on a company-wide time-off row unless the caller can edit the whole plan.
updated_at datetime Date and time the bar was last updated. Use the ISO 8601 Format.

Required permissions

The account must have the Forecast board, and the caller needs a Forecast seat and a read claim to see bars; a write additionally needs a write claim and an account that is not read-only. The gates are worded differently on the collection read than on the rest of the surface:

  • GET /v2/forecast/assignments answers 403 with Forecast is not available for this account when the account does not have the board, 403 with Forecast is not available for this company yet when the company is not on the permissions framework its scopes are written in, and 403 with The authenticated user does not have Forecast access when the caller has no seat or no claim. A transient failure reading the account’s entitlement answers a retryable 503 with Forecast is temporarily unavailable. Please try again in a few minutes.
  • Every other action answers 403 with Forecast is not enabled for this account or Forecast is not enabled for this user, and a write answers 403 with Forecast editing access is required when the caller can read the board but not write it.

Writes are also bounded per record. A caller whose edit scope is limited to the projects they manage may write only bars on those projects, and an id outside that scope answers 404 exactly as an unknown id does. A caller whose edit scope is their own schedule may write only bars they are the assignee of, only on projects they are already rostered on, and their own time off; anything else answers 403 with You can only edit your own schedule, on projects you’re assigned to, and your own time off.

The read scope comes from the token’s user, never from a request parameter: a caller scoped to their own schedule sees only their own bars, a caller scoped to their managed projects only those, whatever the request asks for.

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

List all scheduled assignments

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

Returns the bars that overlap a window, in the shape every other action on this page answers for one bar. A bar overlaps the window when its end_date is on or after from and its start_date is on or before to.

The collection is not paged: it is the whole window, capped at 50,000 bars. The response echoes the window it answered for, because a request that sends neither bound gets the account’s default window, and reports in truncated whether the list is incomplete — either because the cap was reached or because the board window the read goes through was itself truncated. The read also answers an ETag, and a request repeating it in If-None-Match answers 304 Not Modified without a body.

GET /v2/forecast/assignments
Parameter Type Description
from date First day of the window. 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. from cannot be later than to, and the window cannot span more than 24 months.
match string How the filter dimensions combine: all (intersection, the default) or any (union). Any other value, including ANY, is refused.
project_ids integer array Only bars on these projects.
client_ids integer array Only bars on projects of these clients.
tag_ids integer array Only bars on projects carrying these tags.
staff_person_ids integer array Only bars on projects these people are staffed on.
role_ids integer array Only bars whose assignee has one of these roles. Matches people and placeholders.
department_ids integer array Only bars whose assignee is in one of these departments. Person-only, so it never matches a placeholder or a scheduled non-user. Requires the account’s Team module.
person_ids integer array Only bars assigned to these people.
placeholder_ids integer array Only bars assigned to these placeholders.

Each id list is a repeated parameter — project_ids[]=1428577&project_ids[]=1428580 — whose ids must be positive decimal integers without a leading zero, since a zero-padded id would be read as a different record or dropped. An empty list is no filter at all, as an empty dropdown is on the board.

The v2 list parameters are refused rather than ignored, because paging this read or treating it as a delta would answer something other than the window it names. Two spellings ask for exactly what the read returns and are accepted: page=1 and per_page=2000. Everything else is refused with 422, and every offending parameter is reported in one message:

  • page above 1: Invalid page parameter: this endpoint returns the whole window, so only the first page exists
  • any other per_page: Invalid per_page parameter: this endpoint returns the whole window, so only the default of 2000 can be honoured
  • a cursor: Invalid cursor parameter: this endpoint returns the whole window and has no cursor
  • an updated_since: Invalid updated_since parameter: this endpoint filters by the window's from and to dates, not by update time

Example Request:

curl "https://api.harvestapp.com/v2/forecast/assignments?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:

{
  "from": "2026-07-01",
  "to": "2026-07-31",
  "truncated": false,
  "assignments": [
    {
      "id": 884213,
      "project_id": 1428577,
      "user_id": 3188442,
      "placeholder_id": null,
      "scheduled_non_user_id": null,
      "task_assignment_id": 30021188,
      "task_name": "UI Design",
      "task_archived": false,
      "start_date": "2026-07-06",
      "end_date": "2026-07-10",
      "allocation": 28800,
      "authored_total_seconds": null,
      "input_mode": "day",
      "is_time_off": false,
      "active_on_days_off": false,
      "repeated_assignment_set_id": null,
      "notes": "Kickoff week",
      "updated_at": "2026-06-28T09:14:02Z"
    },
    {
      "id": 884219,
      "project_id": null,
      "user_id": null,
      "placeholder_id": null,
      "scheduled_non_user_id": null,
      "task_assignment_id": null,
      "task_name": null,
      "task_archived": false,
      "start_date": "2026-07-20",
      "end_date": "2026-07-24",
      "allocation": null,
      "authored_total_seconds": null,
      "input_mode": "day",
      "is_time_off": true,
      "active_on_days_off": false,
      "repeated_assignment_set_id": null,
      "notes": null,
      "updated_at": "2026-06-28T09:20:44Z"
    }
  ]
}

Retrieve a scheduled assignment

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

Returns one bar 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 bar the list would hide — another company’s, outside the caller’s read scope, or on a project no longer on the board — answers 404.

GET /v2/forecast/assignments/{ASSIGNMENT_ID}

Example Request:

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

Example Response:

{
  "id": 884213,
  "project_id": 1428577,
  "user_id": 3188442,
  "placeholder_id": null,
  "scheduled_non_user_id": null,
  "task_assignment_id": 30021188,
  "task_name": "UI Design",
  "task_archived": false,
  "start_date": "2026-07-06",
  "end_date": "2026-07-10",
  "allocation": 28800,
  "authored_total_seconds": null,
  "input_mode": "day",
  "is_time_off": false,
  "active_on_days_off": false,
  "repeated_assignment_set_id": null,
  "notes": "Kickoff week",
  "updated_at": "2026-06-28T09:14:02Z"
}

Create a scheduled assignment

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

Creates a bar and returns it with a 201 Created response code and a Location header holding the URL of the new assignment. company_id and updated_by_id in the body are ignored: the account comes from the token and the author from the caller.

A create whose assignee is a person also adds that person to the project’s team if they are not already on it, and publishes the board’s added-to-project activity event. That roster add is deliberately not rolled back if the bar then fails validation.

A bar cannot be created inside a repeating series: repeated_assignment_set_id is not a writable attribute, and occurrences are created through the repeating series. The v2 list parameters have no meaning on a write and are ignored rather than refused.

POST /v2/forecast/assignments
Parameter Type Description
start_date date Required. First day of the bar, inclusive.
end_date date Required. Last day of the bar, inclusive. Cannot be before start_date.
user_id integer The person to assign the bar to. Exactly one of user_id, placeholder_id and scheduled_non_user_id must be given, unless the bar is company-wide time off.
placeholder_id integer The placeholder to assign the bar to. A placeholder cannot hold time off.
scheduled_non_user_id integer The person without a Harvest login to assign the bar to. Only on accounts where that rollout is on; naming one where it is not returns 422 with scheduled_non_users_unavailable.
project_id integer Required for project work, forbidden on time off. The project must be on the account’s Forecast board, since a bar the board does not serve could not be read back.
task_assignment_id integer The project task to book against, in the same project. Absent or null creates a task-less bar; a value that names no task in the account is refused.
allocation integer Required for project work. Seconds per working day, 36 to 86400. Omit it for all-day time off.
input_mode string day (the default) or total.
authored_total_seconds integer Required in total mode and forbidden in day mode: the total seconds to spread across the bar’s working days.
notes string Free-text note, up to 1000 characters.
active_on_days_off boolean true books the per-day rate on the assignee’s non-working days too. Defaults to false. Refused on time off.
is_time_off boolean true creates planned time off rather than project work. Defaults to false, and cannot be changed after creation.

A body date may also be sent as a timestamp or in the basic YYYYMMDD form; the day it names is what gets stored. Any other spelling is refused by name, as is a year the date columns cannot hold. The booleans accept true, false, 1 and 0 and their string forms, and nothing else: "no" is not cast, and null is refused rather than reaching the insert.

Example Request:

curl -X POST "https://api.harvestapp.com/v2/forecast/assignments" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"user_id": 3188442, "project_id": 1428577, "task_assignment_id": 30021188, "start_date": "2026-07-06", "end_date": "2026-07-10", "allocation": 28800, "notes": "Kickoff week"}'

Example Response:

{
  "id": 884213,
  "project_id": 1428577,
  "user_id": 3188442,
  "placeholder_id": null,
  "scheduled_non_user_id": null,
  "task_assignment_id": 30021188,
  "task_name": "UI Design",
  "task_archived": false,
  "start_date": "2026-07-06",
  "end_date": "2026-07-10",
  "allocation": 28800,
  "authored_total_seconds": null,
  "input_mode": "day",
  "is_time_off": false,
  "active_on_days_off": false,
  "repeated_assignment_set_id": null,
  "notes": "Kickoff week",
  "updated_at": "2026-06-28T09:14:02Z"
}

Update a scheduled assignment

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

Updates a bar and returns it with a 200 OK response code. The body is partial: an attribute the body omits keeps its stored value, and a body that repeats the stored values is a no-op that answers the same body. Only the body is read — the path id and the query string cannot move or detach a bar.

The bar’s kind is fixed: is_time_off cannot be changed after creation, and neither can a time-off row move between one person and Everyone.

repeated_assignment_set_id is the one field that is neither writable nor ignored outright. An explicit null detaches the occurrence from its repeating series, leaving the rest of the series untouched, and cannot be undone over this API; any other value is ignored, because a bar is only ever attached to a series through the series endpoints.

An archived task narrows the write to allocation, authored_total_seconds and notes. A body that would change anything else is refused rather than silently dropped, and the refusal names what it rejected in rejected_attributes. A body that echoes the stored values of those fields is accepted, so a client that sends back what it read is not punished for the archive.

PATCH /v2/forecast/assignments/{ASSIGNMENT_ID}
Parameter Type Description
start_date date First day of the bar, inclusive.
end_date date Last day of the bar, inclusive. Cannot be before start_date.
user_id integer The person to reassign the bar to. Must be on the project’s team, and exactly one assignee may be set.
placeholder_id integer The placeholder to reassign the bar to.
scheduled_non_user_id integer The person without a Harvest login to reassign the bar to.
project_id integer The project to move the bar to. Only a project the write changes is judged against the board, so a bar whose project has since left the board stays editable and deletable.
task_assignment_id integer The project task to book against. An empty string or null clears it, making the bar task-less.
allocation integer Seconds per working day, 36 to 86400.
input_mode string day or total.
authored_total_seconds integer Total seconds, in total mode.
notes string Free-text note, up to 1000 characters.
active_on_days_off boolean Whether the bar books the assignee’s non-working days too.
is_time_off boolean Accepted only as the value the bar already holds.
repeated_assignment_set_id integer An explicit null detaches the occurrence from its series. Any other value is ignored.

Example Request:

curl -X PATCH "https://api.harvestapp.com/v2/forecast/assignments/884213" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"allocation": 14400, "notes": "Half days from here"}'

Example Response:

{
  "id": 884213,
  "project_id": 1428577,
  "user_id": 3188442,
  "placeholder_id": null,
  "scheduled_non_user_id": null,
  "task_assignment_id": 30021188,
  "task_name": "UI Design",
  "task_archived": false,
  "start_date": "2026-07-06",
  "end_date": "2026-07-10",
  "allocation": 14400,
  "authored_total_seconds": null,
  "input_mode": "day",
  "is_time_off": false,
  "active_on_days_off": false,
  "repeated_assignment_set_id": null,
  "notes": "Half days from here",
  "updated_at": "2026-06-30T11:42:19Z"
}

Delete a scheduled assignment

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

Deletes a bar and returns the bar it deleted with a 200 OK response code. Deleting an occurrence leaves the rest of its repeating series in place. A second delete of the same id answers 404, like any other id that names no row.

DELETE /v2/forecast/assignments/{ASSIGNMENT_ID}

Example Request:

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

Example Response:

{
  "id": 884213,
  "project_id": 1428577,
  "user_id": 3188442,
  "placeholder_id": null,
  "scheduled_non_user_id": null,
  "task_assignment_id": 30021188,
  "task_name": "UI Design",
  "task_archived": false,
  "start_date": "2026-07-06",
  "end_date": "2026-07-10",
  "allocation": 14400,
  "authored_total_seconds": null,
  "input_mode": "day",
  "is_time_off": false,
  "active_on_days_off": false,
  "repeated_assignment_set_id": null,
  "notes": "Half days from here",
  "updated_at": "2026-06-30T11:42:19Z"
}

Divide a scheduled assignment

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

Bisects one bar at a day and returns the two parts with a 200 OK response code, in a single atomic operation. The first part runs from the bar’s start_date to the day before on; the second runs from on to the bar’s end_date. Both parts are ordinary assignments afterwards, independently editable, and both are detached from any repeating series the original belonged to.

In day mode both parts keep the same per-day allocation. In total mode authored_total_seconds is split in proportion to each part’s working days, with the remainder going to the earlier part, and allocation is derived from the new total, so the two parts add up to the original.

on must fall after the bar’s start_date and on or before its end_date. Dividing is therefore not idempotent: replaying the same request is refused, because the first divide moved the original’s end_date to the day before on. Dividing a part again at a day inside it is allowed and splits that part.

POST /v2/forecast/assignments/{ASSIGNMENT_ID}/divide
Parameter Type Description
on date Required. The first day of the second part. Must be after the bar’s start_date and on or before its end_date.
active_on_days_off boolean Answers the board’s “Schedule on non-working days?” prompt: sets the flag on exactly the part or parts that would otherwise hold no working day, so the divide goes through and that part books every day. Ignored on time off, which cannot carry the flag.

Example Request:

curl -X POST "https://api.harvestapp.com/v2/forecast/assignments/884260/divide" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"on": "2026-08-10"}'

Example Response:

{
  "assignments": [
    {
      "id": 884260,
      "project_id": 1428577,
      "user_id": 3188442,
      "placeholder_id": null,
      "scheduled_non_user_id": null,
      "task_assignment_id": 30021188,
      "task_name": "UI Design",
      "task_archived": false,
      "start_date": "2026-08-03",
      "end_date": "2026-08-09",
      "allocation": 28800,
      "authored_total_seconds": null,
      "input_mode": "day",
      "is_time_off": false,
      "active_on_days_off": false,
      "repeated_assignment_set_id": null,
      "notes": null,
      "updated_at": "2026-07-27T08:05:31Z"
    },
    {
      "id": 884301,
      "project_id": 1428577,
      "user_id": 3188442,
      "placeholder_id": null,
      "scheduled_non_user_id": null,
      "task_assignment_id": 30021188,
      "task_name": "UI Design",
      "task_archived": false,
      "start_date": "2026-08-10",
      "end_date": "2026-08-14",
      "allocation": 28800,
      "authored_total_seconds": null,
      "input_mode": "day",
      "is_time_off": false,
      "active_on_days_off": false,
      "repeated_assignment_set_id": null,
      "notes": null,
      "updated_at": "2026-07-27T08:05:31Z"
    }
  ]
}

Errors

Status When
400 A page or per_page value on the collection read 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 (Forecast is not available for this account on the collection read, Forecast is not enabled for this account on every other action); the company is not yet on the permissions framework (Forecast is not available for this company yet); the caller has no Forecast seat or read claim (The authenticated user does not have Forecast access on the collection read, Forecast is not enabled for this user elsewhere); the caller may read the board but not write it (Forecast editing access is required); a caller scoped to their own schedule is refused this bar (You can only edit your own schedule, on projects you’re assigned to, and your own time off.); a department_ids filter is sent by an account without the Team module (Departments are not enabled for this account).
404 The id names no bar this caller can reach, with the same answer and the same message in every case — Record not found: an unknown id, a malformed or out-of-range id, another company’s bar, a bar outside the caller’s read scope, a bar outside a managed editor’s write scope, or a bar on a project no longer on the board. Also returned for a project_id 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 bar is locked by a concurrent edit: That assignment 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 the messages the overview lists); an id filter that is not an array (Invalid project_ids parameter: must be an array, naming the field); an id a filter cannot resolve (Invalid project_ids parameter: ids must be positive decimal integers, naming the field); a match other than all or any (Invalid match parameter: must be one of all, any); or one of the four unsupported list parameters (see the list above). On a write: a start_date or end_date that is not a date (Invalid start_date date provided: 'next monday') or that the date columns cannot hold (start_date must be a date between 1000-01-01 and 9999-12-31); an active_on_days_off or is_time_off that is not one of the boolean spellings (Invalid is_time_off parameter: must be a boolean); a task_assignment_id that names no task (Invalid task_assignment_id parameter: no such task); a project_id that is not a positive id (project_id must be a positive project id); a project the reads never serve (Invalid project_id parameter: must be a project id on this account’s Forecast board); an archived task asked to change something it froze (error_code: "archived_task", That task is archived, so only the hours and notes can be changed., with rejected_attributes); an assignee with no Forecast seat (error_code: "assignee_not_seated", This person doesn’t have a Forecast seat, so they can’t be scheduled.); a scheduled non-user on an account without that rollout (error_code: "scheduled_non_users_unavailable", This account can’t schedule a person without a Harvest login.); an overlap with another bar on the same assignee, project and task (error_code: "overlap", cannot overlap another assignment for the same person, project and task); a bar that would fall entirely on the assignee’s non-working days (An assignment can’t fall entirely on the assignee’s non-working days. Include at least one working day., or the time-off wording); or any other validation the model refuses (error_code: "invalid_assignment", with the model’s own messages). On divide: a missing or malformed on (Divide day is not a valid date.), an on outside the bar (Divide day must fall within the assignment.), a part that would hold no working day (Splitting here would leave a part entirely on the assignee’s non-working days., or Splitting here would leave time off entirely on the assignee’s non-working days. Pick another day.), an archived task (That task is archived, so it can’t be divided.), a total-mode bar with no total (This assignment has no total hours to divide; set its hours first.), a non-boolean active_on_days_off (Invalid active_on_days_off parameter: must be a boolean), or a part the model rejects — all with error_code: "invalid_divide" except the archived-task refusal (archived_task) and the seat rule (assignee_not_seated).
503 The account’s Forecast entitlement could not be read on the collection read, so the answer is retryable rather than final: Forecast is temporarily unavailable. Please try again in a few minutes.

Still have questions? We’re happy to help!

Contact Us