Repeating Assignments

A repeating assignment set is the series behind a repeating bar on the Forecast board. The series records the rhythm; the occurrences themselves are ordinary scheduled assignments, materialized one interval apart. This page documents listing the series you may edit, reading one, creating one from a repeat pattern, editing every occurrence at once, deleting it — whole or from an occurrence onward — and splitting it in two.

The repeating assignment set object

Attribute Type Description
id integer Unique ID for the series.
interval string The series’ rhythm: weekly or monthly. Fixed when the series is created and cannot be changed afterwards.
first_start_date date Start date of the earliest occurrence. Computed from the occurrences, so an occurrence removed from the middle cannot shorten a series it still belongs to.
last_end_date date End date of the latest occurrence. Computed from the occurrences, like first_start_date.
assignment_ids array IDs of the occurrences, ordered by start date, so the index is the occurrence number whatever the interval. Each id is an ordinary scheduled assignment, read and edited through Scheduled Assignments.

A series has no name, no owner and no dates of its own: everything a client reads about it is derived from its occurrences. A series that loses its last occurrence is deleted, and answers 404 from then on.

Required permissions

Every action on this page — including the read — requires the caller to hold a Forecast seat with editing access, not a view-only one. The gates are the Forecast API overview’s shared gates, with the wording this controller owns:

  • An account without Forecast answers 403 with Forecast is not available for this account, before any id is looked up.
  • A caller without a seat, without the matching claim, or on a read-only account answers 403 with Forecast editing access is required.
  • A caller whose edit scope is their own schedule only is refused one series at a time: 403 with You can only read the series you edit: your own schedule, projects you’re assigned to, and your own time off. on the read, and You can only edit the series you write: your own schedule, projects you’re assigned to, and your own time off. on a write. Every wider scope is answered 404 instead, so a series outside the caller’s scope is indistinguishable from one that does not exist.

Writes are refused while the account’s Forecast schedule is being imported: 409 with error_code: "migration_in_progress".

List all repeating assignment sets

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

Returns the series this caller may edit and a 200 OK response code, newest first, so a client can reconcile the whole set without paging the board for bars. Each entry is the same five-field body the member read serves.

The list applies the member read’s per-record rule, asked here as a query: a series appears only when every one of its occurrences is one this caller may write, so a series show would refuse never appears. An all editor therefore sees every series in the account, a managed one only the series whose every occurrence is inside their projects and people, and an own one only their own.

GET /v2/forecast/repeated_assignment_sets
Parameter Type Description
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)

Example Request:

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

Example Response:

{
  "repeated_assignment_sets": [
    {
      "id": 41,
      "interval": "weekly",
      "first_start_date": "2026-11-30",
      "last_end_date": "2026-12-11",
      "assignment_ids": [
        8801,
        8802
      ]
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://api.harvestapp.com/v2/forecast/repeated_assignment_sets?page=1&per_page=2000",
    "next": null,
    "previous": null,
    "last": "https://api.harvestapp.com/v2/forecast/repeated_assignment_sets?page=1&per_page=2000"
  }
}

Retrieve a repeating assignment set

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

Returns a repeating assignment set and a 200 OK response code. This is the read a client makes after editing a single occurrence, to see the series the occurrence still belongs to.

GET /v2/forecast/repeated_assignment_sets/{REPEATED_ASSIGNMENT_SET_ID}

Example Request:

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

Example Response:

{
  "id": 41,
  "interval": "weekly",
  "first_start_date": "2026-11-30",
  "last_end_date": "2026-12-11",
  "assignment_ids": [
    8801,
    8802
  ]
}

Create a repeating assignment set

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

Creates a series from a repeat pattern and returns the repeating assignment set with a 201 Created response code and a Location header holding the URL of the new series. Every occurrence is written in one transaction: an occurrence that cannot be saved rolls the whole series back, so a refused create leaves nothing behind.

POST /v2/forecast/repeated_assignment_sets
Parameter Type Description
weeks integer Required. Length of the series, from 1 to 99. For a monthly series this is the number of occurrences; for a weekly series it is the number of weeks the series spans, so a weekly series with gaps still counts the weeks it covers.
interval string The series’ rhythm: weekly (the default) or monthly.
id integer Adopts an existing standalone scheduled assignment as the first occurrence, instead of creating a fresh one.
user_id integer The person every occurrence is assigned to.
placeholder_id integer The placeholder every occurrence is assigned to, for an unfilled slot.
scheduled_non_user_id integer The person without a Harvest login every occurrence is assigned to. Naming one on an account that cannot schedule such a person returns 422.
project_id integer The project every occurrence belongs to. Absent on a time-off series.
task_assignment_id integer The task every occurrence belongs to. Optional: an occurrence may sit at project level.
start_date date Start date of the first occurrence.
end_date date End date of the first occurrence, inclusive.
allocation integer Seconds of planned time per working day, from 36 to 86400. null on an all-day time-off occurrence.
input_mode string day when allocation is the truth, total when authored_total_seconds is. Time off must be day.
authored_total_seconds integer Total planned time in seconds, when input_mode is total.
notes string Free-text note copied onto every occurrence.
active_on_days_off boolean Whether the occurrences count on days the assignee does not work.
is_time_off boolean true makes this a time-off series rather than project work.

The pattern expands from the first occurrence:

  • weekly — each further occurrence starts exactly seven days after the previous one. A weekly occurrence may be at most seven calendar days long, so end_date cannot be later than start_date plus six days.
  • monthly — one occurrence per calendar month, projected from the first occurrence’s dates. An occurrence must end before the next one starts, so it may be at most one calendar month long: a first occurrence starting on 31 January must end by 27 February, because the next one starts on 28 February. A first occurrence that fills whole calendar months keeps filling whole months.

POST is not idempotent: repeating the same request creates a second series, unless the two would share an occurrence lane, which is the overlap refusal.

Naming an id that no longer exists, or that belongs to another account, returns 404. Naming one that already belongs to a series returns 422 with Assignment is already part of a repeated series.

Example Request:

curl -X POST "https://api.harvestapp.com/v2/forecast/repeated_assignment_sets" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"weeks": 2, "interval": "weekly", "user_id": 1796759, "project_id": 14308069, "task_assignment_id": 8083365, "start_date": "2026-11-30", "end_date": "2026-12-04", "allocation": 28800, "input_mode": "day"}'

Example Response:

{
  "id": 41,
  "interval": "weekly",
  "first_start_date": "2026-11-30",
  "last_end_date": "2026-12-11",
  "assignment_ids": [
    8801,
    8802
  ]
}

Update a repeating assignment set

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

Applies an edit to every occurrence of the series, grows or shrinks the series to a new length, and returns the repeating assignment set with a 200 OK response code. The whole edit is one transaction: an occurrence that cannot be saved rolls back every change the request made, so the series is never left half-edited.

PATCH /v2/forecast/repeated_assignment_sets/{REPEATED_ASSIGNMENT_SET_ID}
Parameter Type Description
id integer Required. The occurrence the edit is applied from, sent in the body. It must be an occurrence of this series; another series’ occurrence returns 404.
weeks integer Required. The series’ target length, from 1 to 99. A larger value materializes occurrences, a smaller one deletes the tail.
interval string Accepted only when it repeats the series’ own interval. Any other value returns 422 with The repeat interval can’t be changed. Delete the series and create a new one.
user_id integer Reassigns every occurrence to this person.
placeholder_id integer Reassigns every occurrence to this placeholder.
scheduled_non_user_id integer Reassigns every occurrence to this person without a Harvest login.
project_id integer Moves every occurrence to this project.
task_assignment_id integer Moves every occurrence to this task.
start_date date Applied to every occurrence as a shift, not as an absolute date.
end_date date Applied to every occurrence as a shift, not as an absolute date.
allocation integer Replaces the planned time per working day on every occurrence.
input_mode string day or total, on every occurrence.
authored_total_seconds integer The total planned time in seconds, on every occurrence.
notes string Replaces the note on every occurrence.
active_on_days_off boolean Sets the flag on every occurrence.
is_time_off boolean Immutable in practice: a series is all time off or all project work.

An edit reaches every occurrence:

  • Non-date fields are copied to every occurrence as sent.
  • A start_date or end_date is read as a change against the occurrence named by id and applied to the rest as the same delta, so a series moved by two days stays two days apart. A weekly series keeps its spacing this way; a monthly series projects each occurrence to its own month instead.
  • weeks is compared with the series’ current length. Growing duplicates the last occurrence forward, one interval at a time; shrinking deletes the occurrences past the new length. A weekly series with gaps counts the weeks it spans, a monthly series counts its occurrences.
  • The occurrence named by id, once edited, must still fit the interval: at most seven calendar days for a weekly series, and ending before the next occurrence starts for a monthly one.

An omitted interval leaves the rhythm alone. A body without id returns 422 naming the field, and so does a body without weeks.

Example Request:

curl -X PATCH "https://api.harvestapp.com/v2/forecast/repeated_assignment_sets/41" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"id": 8801, "weeks": 3, "notes": "Q1 onboarding"}'

Example Response:

{
  "id": 41,
  "interval": "weekly",
  "first_start_date": "2026-11-30",
  "last_end_date": "2026-12-18",
  "assignment_ids": [
    8801,
    8802,
    8814
  ]
}

A changed interval is refused with the series left untouched:

{
  "message": "The repeat interval can’t be changed. Delete the series and create a new one.",
  "error_code": "invalid_repeated_assignment_set",
  "errors": [
    "The repeat interval can’t be changed. Delete the series and create a new one."
  ]
}

Delete a repeating assignment set

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

Without from_assignment_id, deletes the series and every occurrence in it, and returns the deleted repeating assignment set with a 200 OK response code. The body reports what was actually deleted, so it can name occurrences a concurrent grow added while the request waited for its turn.

DELETE /v2/forecast/repeated_assignment_sets/{REPEATED_ASSIGNMENT_SET_ID}
Parameter Type Description
from_assignment_id integer An occurrence of this series to delete from, inclusive. Sent as a query parameter. The occurrences from that one onward are removed and the earlier ones stay, shortening the series rather than deleting it. Absent means the whole series is deleted; a key that is present must name an occurrence, so a blank value returns 422 rather than widening into a full delete.

With from_assignment_id, the delete splits the series at that occurrence and removes only the tail, atomically: a failed split rolls back, so no half-deleted series is left behind. The response is the shortened series, or — when the named occurrence is the first, so there is nothing left to keep — the whole series as it was before the delete.

An id that is not an occurrence of this series returns 422 with error_code: "invalid_split" and Assignment must be a repeated assignment.

Example Request:

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

Example Response:

{
  "id": 41,
  "interval": "weekly",
  "first_start_date": "2026-11-30",
  "last_end_date": "2026-12-11",
  "assignment_ids": [
    8801,
    8802
  ]
}

Deleting the whole series answers the series it removed:

Example Request:

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

Example Response:

{
  "id": 41,
  "interval": "weekly",
  "first_start_date": "2026-11-30",
  "last_end_date": "2026-12-11",
  "assignment_ids": [
    8801,
    8802
  ]
}

Split a repeating assignment set

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

Splits the series at an occurrence: the occurrences from that one forward move to a new series, and the earlier ones stay on the original. Returns both series with a 201 Created response code and a Location header holding the URL of the new tail series.

POST /v2/forecast/repeated_assignment_sets/{REPEATED_ASSIGNMENT_SET_ID}/split
Parameter Type Description
assignment_id integer Required. The occurrence the new series starts at, sent in the body. It must be an occurrence of this series. The occurrences it moves are recorded as edited by the caller.

Splitting at the first occurrence has nothing to split off: no new series is created, and the request answers 200 OK with the one unchanged series and no Location header. Splitting at an occurrence that already moved to a new tail is refused rather than applied twice, because that id no longer names an occurrence of the original series.

The response contains an object with a repeated_assignment_sets property holding the shortened original and the new tail, in that order — one series only when the split was at the first occurrence.

Example Request:

curl -X POST "https://api.harvestapp.com/v2/forecast/repeated_assignment_sets/41/split" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyApp ([email protected])" \
  -d '{"assignment_id": 8802}'

Example Response:

{
  "repeated_assignment_sets": [
    {
      "id": 41,
      "interval": "weekly",
      "first_start_date": "2026-11-30",
      "last_end_date": "2026-12-04",
      "assignment_ids": [
        8801
      ]
    },
    {
      "id": 42,
      "interval": "weekly",
      "first_start_date": "2026-12-07",
      "last_end_date": "2026-12-11",
      "assignment_ids": [
        8802
      ]
    }
  ]
}

Errors

Status When
403 The account does not have Forecast: Forecast is not available for this account. The caller has no Forecast seat, no forecast claim, or is on a read-only account: Forecast editing access is required. A caller whose edit scope is their own schedule is refused this series: You can only read the series you edit: your own schedule, projects you’re assigned to, and your own time off. on a read, You can only edit the series you write: your own schedule, projects you’re assigned to, and your own time off. on a write.
404 The series does not exist, belongs to another account, is outside the caller’s edit scope, or the id in the path is not a number: Record not found. Also returned by POST when the id it adopts names nothing of the account, and by PATCH when id names an occurrence of another series.
409 The account’s Forecast schedule is being imported, so no write is accepted: error_code: "migration_in_progress" with This account’s Forecast schedule is being imported, so this change wasn’t saved. Try again once the import finishes. A concurrent write holds the series’ overlap lock past its ten-second wait: error_code: "locked" with That series is being changed by someone else. Try again.
422 A body value has the wrong shape, and the message names every offending field: Invalid weeks parameter: must be a positive integer, Invalid interval parameter: must be weekly or monthly, Invalid start_date date provided: '<value>', Invalid end_date date provided: '<value>', Invalid <field> parameter: must be an integer, Invalid <field> parameter: must be a single value, Invalid active_on_days_off parameter: must be a boolean, Invalid is_time_off parameter: must be a boolean, Invalid from_assignment_id parameter: must be an integer, Invalid assignment_id parameter: must be an integer.
422 The series is invalid, with error_code: "invalid_repeated_assignment_set": a weeks above 99 (Weeks must be less than or equal to 99), a missing weeks (Weeks can't be blank), a first occurrence longer than the interval allows (Repeated assignment cannot be more than 7 days long., Repeated assignment must end before the next monthly occurrence starts.), an adopted assignment already in a series (Assignment is already part of a repeated series.), or a changed interval (The repeat interval can’t be changed. Delete the series and create a new one.).
422 An occurrence overlaps a bar already on its lane, with error_code: "overlap": cannot overlap another assignment for the same person, project and task, cannot overlap other time off for the same person, or cannot overlap other time off for Everyone.
422 An occurrence names a person without a Forecast seat, with error_code: "assignee_not_seated": This person doesn’t have a Forecast seat, so they can’t be scheduled.
422 The request names a person without a Harvest login on an account that cannot schedule one, with error_code: "scheduled_non_users_unavailable": This account can’t schedule a person without a Harvest login.
422 The split cannot be made, with error_code: "invalid_split": assignment_id is absent or names a bar that is not an occurrence of this series, so Assignment must be a repeated assignment. The tail delete of a DELETE carries the same code and message.

Still have questions? We’re happy to help!

Contact Us