Resourcing
The resourcing endpoints read the resourcing schedule and change the plan: weekly allocations, deletes, deliverable, project, task and milestone dates, and the undo of an applied list. A list of changes is previewed, then applied as one unit, so you can check the effect on people’s free time, dates and budgets before anything is saved.
The web resourcing screens, the MCP resourcing tools and these endpoints run the same operations, so the same rules apply everywhere.
Endpoints
| Method and path | Does |
|---|---|
GET /api/v1/resource_schedule |
Reads each person’s weekly capacity, unavailable time, load and free time, and the allocations behind the load |
POST /api/v1/resourcing_changes/preview |
Runs a list of changes, stores the preview, and saves nothing else |
GET /api/v1/resourcing_changes/previews/:id |
Reads a page of a stored preview |
POST /api/v1/resourcing_changes/apply |
Saves the whole list of changes, or none of it |
DELETE /api/v1/allocations/:id |
Removes a weekly allocation |
POST /api/v1/allocation_changes/preview and /apply are deprecated and stay for one release (see Version 1).
Permissions
| Endpoint | API permission | Drum access |
|---|---|---|
GET /resource_schedule |
api_read |
“View global resourcing”. With project_id, resourcing access to that project instead: a resourcing permission, or a resourcing project role. With scope=staffing_candidates, the resourcing edit right on project_id instead |
POST /resourcing_changes/preview |
api_read |
The resourcing edit right on the project of each change |
GET /resourcing_changes/previews/:id |
api_read |
Read access to every record of the preview |
POST /resourcing_changes/apply |
api_create, api_update or api_delete, and each change the permission of its effect (see Permissions of each change) |
The resourcing edit right on the project of each change |
DELETE /allocations/:id |
api_delete |
The resourcing edit right on the allocation’s project |
A record on a project that the token’s user can neither read nor open the resourcing of returns 404, the same as one that does not exist. Timed allocations are read only: the schedule lists them, but a change or a delete answers 404 allocation_not_found.
Read the resource schedule
GET /api/v1/resource_schedule?start_week=2026-11-02&end_week=2026-11-23&team_ids=4
Parameters
| Parameter | Type | Notes |
|---|---|---|
scope |
string | schedule (default), or staffing_candidates: the people who could be allocated to project_id (see Staffing candidates) |
start_week |
date | yyyy-mm-dd, any day of the week. The week starts on Monday. Default: this week, in the account’s time zone |
end_week |
date | Default: 8 weeks from start_week. At most 26 weeks in all |
member_ids |
ids | Only these people. An array (member_ids[]=1&member_ids[]=2) or a comma list (member_ids=1,2) |
team_ids |
ids | Only the people of these teams (current membership) |
resource_type_ids |
ids | Only the people with these roles |
project_id |
id | With schedule, only the people allocated to this project in the range, plus its unfilled role allocations. With staffing_candidates, the project to staff (required) |
exclude_project_ids |
ids | Leave the load and the allocations of these projects out, to see what happens if they stop |
only_over_allocated |
boolean | Only the people over capacity in at least one week |
min_free_minutes |
integer | Only the people with at least this many free minutes on free_basis |
free_basis |
string | each_week (default): the free minutes of the person’s least free week. total: the free minutes of the whole range |
sort |
string | name (default), or most_free: the most free minutes on free_basis first, then by name |
limit |
integer | People per page. Default 10, at most 50 |
offset |
integer | People to skip. Default 0 |
unfilled_roles_offset |
integer | Unfilled roles to skip, apart from the people. Default 0. Unfilled roles come 50 to a page |
The id lists take an array or a comma list. min_free_minutes, only_over_allocated and sort apply before the page, so the first page holds the people with the most free time when sort=most_free.
To find who is free for 20 hours a week across November, most free first:
GET /api/v1/resource_schedule?start_week=2026-11-02&end_week=2026-11-23&min_free_minutes=1200&sort=most_free
Staffing candidates
scope=staffing_candidates lists every person an allocation on project_id may name, allocated to the project or not, so a project manager can find who is free without the account-wide schedule. It needs the resourcing edit right on that project, not “view global resourcing”.
It shows capacity only. The allocations listed are on that project, and all other work counts in other_work_minutes, with no project names. The figures are the same as on the full schedule: hiding the other projects does not change anyone’s capacity or free time.
GET /api/v1/resource_schedule?scope=staffing_candidates&project_id=55&start_week=2026-11-02&end_week=2026-11-30&sort=most_free
Response
{
"scope": "schedule",
"start_week": "2026-03-02",
"end_week": "2026-03-09",
"weeks": ["2026-03-02", "2026-03-09"],
"project_id": null,
"availability": {"free_basis": "each_week", "sort": "name", "note": "free_basis_minutes is the free minutes of the least free week. ..."},
"members": [
{
"id": 12,
"name": "Sam Taylor",
"default_role": "Designer",
"roles": [{"id": 3, "name": "Designer"}],
"capacity_minutes": [1824, 1824],
"unavailable_minutes": [0, 456],
"load_minutes": [600, 0],
"other_work_minutes": [0, 0],
"free_minutes": [1224, 1368],
"over_allocated_weeks": 0,
"free_basis_minutes": 1224,
"allocations": [
{
"id": 901,
"plan_revision": 4,
"granularity": "weekly",
"status": "confirmed",
"project": {"id": 55, "name": "Harbour St fitout"},
"deliverable": {"id": 210, "name": "Design"},
"task": null,
"role": null,
"distribution": "even",
"tied": false,
"start_week": "2026-03-02",
"end_week": "2026-03-02",
"minutes": [600, 0]
}
]
}
],
"unfilled_roles": [],
"unfilled_roles_has_more": false,
"unfilled_roles_offset": 0,
"count": 1,
"limit": 10,
"offset": 0,
"has_more": false
}
All figures are whole minutes. Each per-week array follows the order of weeks.
| Field | Meaning |
|---|---|
capacity_minutes |
The billable target hours of the work schedule in force that week. A person with no work schedule has 38 hours |
unavailable_minutes |
Public holidays of the person’s region, plus leave on days that are not holidays, at most the standard week |
load_minutes |
For each project, the larger of planned minutes (tentative and confirmed allocations) and tracked minutes, summed |
other_work_minutes |
The part of the load on projects the user cannot read, and personal rows. With staffing_candidates, the load of every other project |
free_minutes |
Capacity less unavailable time (not below 0), less load. Negative means over-allocated |
over_allocated_weeks |
The number of weeks with negative free minutes |
free_basis_minutes |
The free minutes on free_basis that min_free_minutes and sort=most_free read |
availability |
Echoes free_basis, the filter and sort, with a note on what the basis means |
allocations |
The allocations behind the load, on projects the user can read. granularity is weekly or timed (read only) |
plan_revision |
The revision a change to this allocation must send as expected_plan_revision |
unfilled_roles |
The role allocations with no person and with weeks in the range, in the shape of an allocation: of project_id when it is sent, else of the kept projects the user can read. At most 50, by project id and allocation id. When unfilled_roles_has_more is true, call again with unfilled_roles_offset set to the offset plus the number returned, and the other parameters unchanged |
Allocations on projects the user cannot read are not listed. Their load is in other_work_minutes, as the resourcing page shows “Other work”. Free minutes are weekly estimates of capacity less leave and load, not free time slots.
Preview and apply resourcing changes
A list of 1 to 50 changes is previewed, then applied as one unit. The changes run in order, and a later change sees what an earlier one did.
POST /api/v1/resourcing_changes/preview
Content-Type: application/json
{
"changes": [
{"type": "shift", "allocation_id": 901, "expected_plan_revision": 4, "weeks": 2},
{"type": "create", "deliverable_id": 210, "member_id": 14, "start_week": "2026-11-02",
"num_weeks": 4, "total_minutes": 3600, "distribution": "front_loaded", "status": "tentative"}
]
}
Send the same list to /apply, with an idempotency_key and the preview’s preview_token, to save it. The apply saves every change, or none.
Change types
type |
Inputs | Example |
|---|---|---|
create |
deliverable_id or task_id; member_id and/or resource_type_id; start_week; end_week or num_weeks; minutes_per_week and/or total_minutes; distribution; status; tied; ref; on a task, split_from_allocation_id |
{"type": "create", "deliverable_id": 201, "member_id": 12, "start_week": "2026-10-05", "num_weeks": 4, "minutes_per_week": 600} |
update |
allocation_id or allocation_ref, expected_plan_revision, and any of: member_id, resource_type_id, status, tied, distribution, minutes_per_week, start_week and end_week (a resize), total_minutes with start_week and num_weeks or end_week (a new plan), boundary |
{"type": "update", "allocation_id": 9002, "expected_plan_revision": 1, "status": "confirmed"} |
shift |
allocation_id or allocation_ref, expected_plan_revision, weeks (negative for earlier), boundary, member_id |
{"type": "shift", "allocation_id": 9001, "expected_plan_revision": 4, "weeks": 1} |
set_week |
allocation_id or allocation_ref, expected_plan_revision, week, minutes (0 clears the week), boundary |
{"type": "set_week", "allocation_id": 9001, "expected_plan_revision": 4, "week": "2026-10-12", "minutes": 300} |
delete |
allocation_id or allocation_ref, expected_plan_revision |
{"type": "delete", "allocation_id": 9002, "expected_plan_revision": 1} |
set_deliverable_dates |
deliverable_id, expected_updated_at, start_date and/or end_date, move |
{"type": "set_deliverable_dates", "deliverable_id": 201, "expected_updated_at": "2026-10-01T02:03:04.123456Z", "end_date": "2026-11-27", "move": {"task_dates": true}} |
push_project |
project_id, from_date, weeks (-52 to 52, not 0), deliverable_ids, task_ids, move |
{"type": "push_project", "project_id": 101, "from_date": "2026-10-05", "weeks": 2} |
set_task_dates |
task_id, expected_updated_at, start_date and/or due_date (null clears) |
{"type": "set_task_dates", "task_id": 301, "expected_updated_at": "2026-10-01T02:03:04.123456Z", "start_date": null, "due_date": "2026-11-06"} |
set_milestone_date |
milestone_id, expected_updated_at, planned_date, note |
{"type": "set_milestone_date", "milestone_id": 51, "expected_updated_at": "2026-10-01T02:03:04.123456Z", "planned_date": "2026-11-13", "note": "Client moved the review"} |
set_project_dates |
project_id, start_date and/or end_date |
{"type": "set_project_dates", "project_id": 101, "end_date": "2027-03-31"} |
create_milestone |
project_id or deliverable_id (or both, of the same project), name, milestone_type_id, planned_date, note |
{"type": "create_milestone", "deliverable_id": 201, "name": "Client review", "milestone_type_id": 3, "planned_date": "2026-11-20"} |
undo |
change_set_id, alone in its list |
{"type": "undo", "change_set_id": 7001} |
| Input | Values |
|---|---|
distribution |
even, front_loaded or back_loaded. How total_minutes spreads over the weeks |
status |
tentative (default) or confirmed |
tied |
true makes a deliverable or task allocation follow the deliverable’s dates. A task allocation never follows the task’s own dates, and is untied unless the change sends tied: true |
boundary |
For a tied allocation that would leave its deliverable’s dates: extend moves the dates, detach unties the allocation. An extend on a shift, set_week or update also grows the deliverable’s other tied allocations that reached its old dates, as a set_deliverable_dates extension does, and leaves an allocation with a manual distribution where it is. The grown allocations are in the result’s journal, and an undo restores them. extend locks the deliverable’s tied allocations and people whether or not the change crosses the dates, so send it only in answer to boundary_resolution_required |
ref |
Names a new allocation, so a later change in the list can use it as allocation_ref |
move |
What moves with a deliverable or project date besides its tied allocations: other_allocations, task_dates (deliverable only), milestones, and project_dates (push_project only: the project’s own start and end dates on or after from_date). Each is false by default |
split_from_allocation_id |
On a task create: the booking this one splits from, so the new part keeps its catch-up credit. It must be a kept weekly booking on the same task. It copies the credit link, not the hours, so reduce the source’s future weeks in the same list. The source does not count as a second allocation of the person |
A change takes only the inputs of its type: another input answers invalid_input. A null counts as not sent, except on set_task_dates start_date and due_date, where it clears the date. An unknown top-level input, such as a misspelled preview_token, answers 422 invalid_input.
Rules
- Minutes are whole minutes. Weeks and dates are
yyyy-mm-dd, and a week starts on the Monday of its day. - “This week” is the account’s week, in its time zone, as
GET /resource_schedulereads it. No change can write a week before this week (past_week) or move a date before today (date_in_past). A resize may send the allocation’s current start unchanged, and its past weeks stay as they are. member_idandresource_type_id: a role alone is an unfilled role. A task allocation needs a person.- A person has one allocation on a deliverable, whatever its role, and one on a task. A create or an update that would give them a second answers
allocation_existswith the existingallocation_id. total_minutesis spread over the weeks fromstart_week, and must fitminutes_per_weekin each of them. The past weeks of an allocation are kept apart from it.minutes_per_weekalone on a task allocation sets each current and future week of its span.- A plan covers at most 520 weeks, and one list writes at most 1,040 weeks.
- A
set_weekto 0 on an allocation’s last week answerslast_week_of_allocation. Send adeleteinstead. - The first change on a record in the list needs its revision:
expected_plan_revisionfor an allocation (fromGET /resource_schedule),expected_updated_atfor a deliverable, task or milestone (fromGET /api/v1/projects/:id, to the microsecond). Later changes on it in the same list may leave it out. A record that changed since answers409 stale_state. - An achieved milestone keeps its date (
milestone_achieved). - A
shiftwithmember_idgives the current and future weeks of a task or deliverable allocation to another person in one step. The past weeks, and the hours already logged this week, stay with the first person, and the result names the new allocation that holds the moved work (on a task, against the new person’s resource line; on a deliverable, a new row of the same role). The new person may not already have an allocation there (allocation_exists).weeksmay be 0 withmember_id. The weekly pattern, distribution and total stay the same, and if the new allocation cannot be made, the source does not change. This form needsapi_createas well asapi_update. - On a task, when the allocation has no past weeks and no hours logged this week, its resource line moves to the new person with its budget, if the line has no logged time or actuals, no other allocation uses it, and the new person has no other line of that role on the task. Otherwise the moved work books against the new person’s line of the role (or an unassigned line of the role, which they claim, or a new line), and the old line keeps its budget. The web does the same.
set_project_datestakes no revision: the dates sent replace the project’s. An apply bound to a preview still answerspreview_staleif the project’s dates changed since. A start after the end answersstart_after_end.create_milestoneadds an open milestone, planned today or later. List the milestone types withGET /api/v1/milestone_types(MCPget_projectalso gives them asmilestone_types). A later change in the same list cannot name the new milestone, and anundodeletes it.
Permissions of each change
Any of api_create, api_update or api_delete admits an apply. Each change then needs the API permission of its effect:
| Change | Needs |
|---|---|
create, create_milestone |
api_create |
update, shift, set_week, date changes |
api_update. A shift with member_id also needs api_create |
delete |
api_delete |
undo |
The permissions of what it does: api_delete to remove an allocation the list created, api_create to make again one it deleted, api_update for the rest |
A change the token lacks the permission for answers 403 permission_missing, with capability and change_index. Each change also needs the resourcing edit right on its project, a milestone date the right to update the milestone, and a project’s own dates (set_project_dates, move.project_dates, or their undo) the right to update the project.
Budgets
A change that adds minutes past the cap of its budget answers 422 over_budget, unless the token’s user has “allow over budget resourcing” on the project. The cap is the web editor’s: the remaining budget in hours at the project’s rate for the role, or, for one week of a task priced by the hour, its budgeted hours. The error has budget, with kind (deliverable, task or resource_line), id and remaining_minutes: the current and future minutes the allocation can hold.
Only a fixed fee deliverable and a client cap hold resourcing. Each budgets row of a preview has its deliverable’s limit_kind: fixed_fee, client_cap, estimate (hourly work whose amount is a planning figure) or open (hourly work with no amount). An estimate is never over (over_budget_before and over_budget_after stay false). Planning past it saves for anyone who may edit resourcing, sets past_estimate_before and past_estimate_after, and adds the past_estimate warning (“The estimate of NAME is passed after these changes”), which needs no permission. An open row is neither over nor past. Before 10 November 2026, every budget held resourcing.
Preview
POST /api/v1/resourcing_changes/preview takes changes, and optional exclude_project_ids (leave those projects’ load out, to see the effect of stopping them). It runs the list in a transaction that is rolled back, stores the result for 30 minutes (or until the next Monday in the account’s time zone, if that is sooner) and answers its first page of changes:
{
"preview": true, "ok": true, "can_apply": true,
"preview_id": "...", "preview_token": "...", "expires_at": "2026-10-19T10:30:00Z",
"summary": "1 change, no one is over capacity in the changed weeks",
"totals": {"changes": 1, "failed_changes": 0, "...": 0},
"capabilities": ["api_update"], "missing_capabilities": [],
"collection": "changes",
"items": [{"index": 0, "type": "shift", "ok": true, "allocation_id": 9001, "plan_revision": 5, "deleted": false}],
"total": 1, "next_cursor": null
}
| Field | Meaning |
|---|---|
ok |
true when every change succeeded |
can_apply |
true when every change succeeded and the token has every permission the list needs |
summary, totals |
One line for a person, and counts over the whole list: changes, failed changes, people and weeks over capacity, dates moved, budgets over, warnings and more |
capabilities, missing_capabilities |
The API permissions the list needs, and those the token’s user lacks |
preview_id |
Reads the other pages of this preview |
preview_token |
Binds the apply to this preview. It is given once: keep it |
items |
The first page of changes: each change’s index, type, ok, and what it did, or its error (code, message, and field as changes[i].field) |
A failed change does not stop the others, so you can fix every problem in one pass. A preview with an error cannot be applied with its token (preview_not_applicable).
Preview pages
GET /api/v1/resourcing_changes/previews/:id?collection=member_weeks&limit=100
| Parameter | Notes |
|---|---|
collection |
changes (default), edits, blocks, members, member_weeks, dates, demand, budgets or warnings |
cursor |
The next_cursor of the page before |
limit |
1 to 200. Default 50 |
collection |
Rows |
|---|---|
changes |
Each change: ok or its error, and what it did |
edits |
Each allocation created, deleted or changed, date ripples included, before and after |
blocks |
Each current or future week of those allocations whose minutes change, before and after |
members, member_weeks |
The people whose planned time changes, and their weeks: capacity, minutes before and after, free minutes after, over capacity |
dates |
Each deliverable, task and milestone date that moves, before and after |
demand |
The unfilled role demand that changes |
budgets |
The deliverable and task budgets the list draws on. Money only when the token’s user can see the project’s money |
warnings |
What a person should know before saving |
A page holds at most 32,000 bytes, so it can hold fewer rows than limit. A row too large for one page comes in parts, {row_index, json_fragment: {offset, total_length, content}}, with the next part on the next page: join the content strings in order and parse the result.
A page shows what was proposed when the preview ran, not the plan now, and is checked against the user’s current permissions on every read. An unknown preview, another user’s, or one with a record the user can no longer read answers 404 preview_not_found. An expired one answers preview_expired.
Apply
POST /api/v1/resourcing_changes/apply takes changes, idempotency_key (required, 255 characters or fewer, in the body or the Idempotency-Key header) and optional preview_token.
- With
preview_token, the apply runs only on the previewed changes (preview_mismatch), beforeexpires_at(preview_expired), and only when nothing they depend on changed (409 preview_stale). Preview again and show the new result; do not refresh the token silently. - Retry a lost response with the same
idempotency_keyand the same body: it answers the first receipt withreplayed: trueand saves nothing. The same key with other changes answersidempotency_key_reused.
{
"preview": false, "ok": true, "change_set_id": 7001, "replayed": false, "preview_bound": true,
"capabilities": ["api_update"],
"summary": "1 change, no one is over capacity in the changed weeks", "totals": {"changes": 1, "...": 0},
"changes": [{"index": 0, "type": "shift", "ok": true, "allocation_id": 9001, "plan_revision": 5, "deleted": false}]
}
| Field | Meaning |
|---|---|
change_set_id |
The input of an undo |
replayed |
true when this is the first receipt of an earlier apply with the same key |
preview_bound |
Whether the apply sent a preview_token |
changes[] |
One receipt per change: allocation ids and their new plan_revision. A date change has date_counts (deliverables, tasks, milestones, allocations) instead of every date; the full dates stay in the preview’s dates collection until it expires. An undo maps old ids to new ids for the allocations it made again |
A failed change rolls back the whole list, and the endpoint answers that change’s error with change_index:
{
"error": "The allocation changed since it was read. Read it again",
"code": "stale_state",
"change_index": 0,
"current_plan_revision": 6
}
Undo
A list with one {"type": "undo", "change_set_id": 7001} restores what that list changed: it removes the allocations the list created, restores the ones it changed and the dates it moved, and makes again the ones it deleted, with new ids. The author, or an account admin, can undo a list within 30 days. An undo answers undo_stale when a record changed since, undo_expired after 30 days, undo_past_boundary when it would change a past week or date, already_undone, and undo_not_supported for a list applied before undo existed.
Version 1: allocation changes (deprecated)
POST /api/v1/allocation_changes/preview and /apply take only the weekly types (create, update, shift, set_week), store nothing, and answer the older changes, impact and next_step shape. They are deprecated since 2026-10-19 and stay for one release. Move to /api/v1/resourcing_changes: send the same changes, add an idempotency_key to the apply, and read the impact from the preview pages.
Delete an allocation
DELETE /api/v1/allocations/9002
{"id": 9002, "deleted": true, "has_past_blocks": false}
An allocation with past weeks, or hours already logged this week, keeps them as history and loses the rest of its plan: deleted is false and has_past_blocks is true. A task’s resource line that no allocation uses any more is removed with it, when it can be. A deleted allocation cannot be restored.
Errors
Error bodies follow Requests, errors and limits.
| Status | code |
When |
|---|---|---|
| 403 | resourcing_not_permitted |
The user may not read this schedule |
| 403 | resourcing_edit_not_permitted |
The user has no resourcing edit right on the project |
| 403 | permission_missing |
The token’s user lacks the API permission of a change (capability, change_index) |
| 404 | project_not_found |
project_id is not a project the user can read |
| 404 | allocation_not_found, deliverable_not_found, task_not_found, milestone_not_found, member_not_found, resource_type_not_found |
Not on a project the user can read. A timed allocation is not found either |
| 404 | change_set_not_found |
The change_set_id of an undo is not one the user can undo |
| 404 | preview_not_found |
The preview or preview_token is unknown, another user’s, or has a record the user can no longer read |
| 409 | stale_state |
expected_plan_revision or expected_updated_at is not the current revision (current_plan_revision for an allocation) |
| 409 | allocation_exists |
The person already has an allocation on the deliverable or task (allocation_id). Update it instead |
| 409 | boundary_resolution_required |
A tied allocation would leave its deliverable’s dates (deliverable_start_date, deliverable_end_date). Send boundary |
| 409 | blocked_dependency |
The change depends on an earlier change that failed, or that deleted its allocation (depends_on) |
| 409 | preview_expired, preview_mismatch, preview_not_applicable, preview_stale |
The apply does not match a usable preview (see Apply) |
| 409 | idempotency_key_reused |
The key was used before with other changes |
| 409 | undo_stale, already_undone |
A record changed after the list was applied, or the list is already undone |
| 409 | resourcing_busy |
Another save held the same rows, or, for a preview, held them more than 3 seconds. Nothing was saved. Try again |
| 422 | invalid_input, missing_input |
The list or a change is malformed, or the request has an unknown top-level input. On the schedule: a bad id, date, limit, offset, scope, basis or sort, or scope=staffing_candidates without project_id |
| 422 | start_after_end |
A project’s start would be after its end |
| 422 | too_many_changes, too_many_records, too_many_blocks, preview_too_large |
The list is too large. Send it in smaller lists |
| 422 | past_week |
A change writes a week before this week |
| 422 | date_in_past |
A change moves a date before today |
| 422 | milestone_achieved |
An achieved milestone keeps its planned date. Reopen it first |
| 422 | undo_expired, undo_past_boundary, undo_not_supported |
See Undo |
| 422 | date_range_inverted |
An end week is before its start week |
| 422 | date_range_too_long, too_many_weeks |
The schedule covers more than 26 weeks, a plan more than 520 weeks, or the list writes more than 1,040 |
| 422 | total_does_not_fit |
total_minutes is more than minutes_per_week in each of the weeks |
| 422 | last_week_of_allocation |
A set_week to 0 would clear the last week. Delete the allocation instead |
| 422 | over_budget |
The change goes past its budget’s cap (see Budgets) |
| 422 | validation_failed |
The allocation would not save (errors) |