GET/api/v1/project-pods/prefs
GET /api/project-pods/prefs
Parameters
| Name | In | Type | Required | Description |
|---|
surface | query | string | No | |
Responses
Security: bearer
PUT/api/v1/project-pods/prefs
PUT /api/project-pods/prefs
Request body
PutPodPrefsRequest
Responses
Security: bearer
GET/api/v1/project-pods/settings
GET /api/project-pods/settings?surface=project_task
Parameters
| Name | In | Type | Required | Description |
|---|
surface | query | string | No | |
Responses
Security: bearer
PUT/api/v1/project-pods/settings
PUT /api/project-pods/settings — the matrix is an org document.
Request body
PutPodSettingsRequest
Responses
| Status | Description |
|---|
200 | |
422 | unknown pod |
Security: bearer
GET/api/v1/project-templates
GET /api/project-templates
Responses
Security: bearer
POST/api/v1/project-templates
POST /api/project-templates — stores a blueprint (spec validated);
emits `project.template_updated`.
Request body
CreateTemplateRequest
Responses
| Status | Description |
|---|
200 | |
409 | template name already in use |
422 | invalid template spec |
Security: bearer
PATCH/api/v1/project-templates/{id}
PATCH /api/project-templates/{id} — emits `project.template_updated`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
PatchTemplateRequest
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
422 | invalid template spec |
Security: bearer
DELETE/api/v1/project-templates/{id}
DELETE /api/project-templates/{id} — blueprints are data, not live
references: projects already instantiated are untouched; emits
`project.template_removed`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/project-templates/{id}/archive
POST /api/project-templates/{id}/archive
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
ArchiveTemplateRequest
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/project-templates/{id}/create
POST /api/project-templates/{id}/create — instantiation with the one check
the gallery promises first: a billable template cannot start without a
contract that bills the chosen client. The refusal is decided in
the same transaction that writes the project, with the contract rows locked.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreateFromTemplateRequest
Responses
| Status | Description |
|---|
200 | |
422 | billing_mismatch: the template bills but the client has no contract |
Security: bearer
POST/api/v1/project-templates/{id}/fork
POST /api/project-templates/{id}/fork — copies the current version into a
new org-owned template. The fork keeps the plan it was tuned from, which is
what makes a shipped template safe to improve.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
ForkTemplateRequest
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
409 | a template with this name already exists |
422 | validation failed |
Security: bearer
GET/api/v1/project-templates/{id}/gallery-card
GET /api/project-templates/{id}/gallery-card
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/project-templates/{id}/instantiate
POST /api/project-templates/{id}/instantiate — expands the template
into a REAL project: phases, tasks, dependencies, and every lifecycle
event, all in ONE transaction (claim → expand → insert → events →
record). Rollback on any failure leaves zero partial rows.
The generic endpoint does not enforce a billing guard; the gallery's
`/create` route calls [`instantiate_project`] with one.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
InstantiateTemplateRequest
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | invalid template spec or request |
Security: bearer
GET/api/v1/project-templates/{id}/lessons
GET /api/project-templates/{id}/lessons
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/project-templates/{id}/lessons
POST /api/project-templates/{id}/lessons — records what a closed project
taught. The evidence is required in shape (a project or a stated number),
because a suggestion without a source is an opinion.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreateLessonRequest
Responses
| Status | Description |
|---|
200 | |
422 | validation failed |
Security: bearer
POST/api/v1/project-templates/{id}/lessons/{lesson_id}/decide
POST /api/project-templates/{id}/lessons/{lesson_id}/decide
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
lesson_id | path | string | Yes | |
Request body
DecideLessonRequest
Responses
| Status | Description |
|---|
200 | |
409 | the lesson is already decided |
Security: bearer
GET/api/v1/project-templates/{id}/preview
GET /api/project-templates/{id}/preview — the plan tree, its roles and its
shape, before anyone creates a project from it.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
422 | the spec does not parse |
Security: bearer
GET/api/v1/project-templates/{id}/validate
GET /api/project-templates/{id}/validate — what would break a project
created from this version. It checks the document, never the project.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
GET/api/v1/project-templates/{id}/versions
GET /api/project-templates/{id}/versions — every version, newest first,
with the current one marked.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/project-templates/{id}/versions
POST /api/project-templates/{id}/versions — appends a draft. The document
is validated as a template spec before it is stored, so a draft that would
not instantiate cannot be created.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
AppendVersionRequest
Responses
| Status | Description |
|---|
200 | |
404 | template not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
POST/api/v1/project-templates/{id}/versions/{version}/publish
POST /api/project-templates/{id}/versions/{version}/publish — makes a
version the template's current document. Publication is what an
instantiation reads, so a draft never changes a project by accident.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
version | path | integer | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | template or version not visible in scope (rls_sparse) |
422 | the version does not parse as a spec |
Security: bearer
GET/api/v1/project-views
GET /api/project-views — one project's views, or all org views when
`project_id` is omitted.
Parameters
| Name | In | Type | Required | Description |
|---|
project_id | query | — | No | Scope to one project's views; omit for the org's ENTIRE view set. |
Responses
Security: bearer
POST/api/v1/project-views
POST /api/project-views — saves a view; emits `project.view_updated`.
Request body
CreateViewRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
409 | view name already in use in the scope |
422 | validation failed |
Security: bearer
PATCH/api/v1/project-views/{id}
PATCH /api/project-views/{id} — renames / respecs a view; emits
`project.view_updated`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
PatchViewRequest
Responses
| Status | Description |
|---|
200 | |
404 | view not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
DELETE/api/v1/project-views/{id}
DELETE /api/project-views/{id} — emits `project.view_removed`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | view not visible in scope (rls_sparse) |
Security: bearer
GET/api/v1/projects
GET /api/projects — filtered, newest-first list.
Parameters
| Name | In | Type | Required | Description |
|---|
status | query | ProjectStatus | null | No | |
client_id | query | — | No | |
limit | query | integer | No | |
offset | query | integer | No | |
Responses
Security: bearer
POST/api/v1/projects
POST /api/projects — creates the project and emits `project.created` in
one transaction. Instant-first (IF1/IF2): idempotency-keyed,
version-gated, read-your-write response.
Request body
CreateProjectRequest
Responses
| Status | Description |
|---|
200 | |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
GET/api/v1/projects/my-work
GET /api/projects/my-work — the project-shaped day, without opening a
project. Waiting (`blocked`) is its own state and says what it waits on.
Responses
Security: bearer
GET/api/v1/projects/portfolio
GET /api/projects/portfolio
Parameters
| Name | In | Type | Required | Description |
|---|
from | query | string | No | |
to | query | string | No | |
group_by | query | string | No | |
at_risk_only | query | boolean | No | |
zoom | query | string | No | |
Responses
Security: bearer
POST/api/v1/projects/portfolio/share
POST /api/projects/portfolio/share — a link reproduces this exact view.
Parameters
| Name | In | Type | Required | Description |
|---|
from | query | string | No | |
to | query | string | No | |
group_by | query | string | No | |
at_risk_only | query | boolean | No | |
zoom | query | string | No | |
Responses
Security: bearer
GET/api/v1/projects/portfolio/shared/{token}
GET /api/projects/portfolio/shared/{token} — the picture that was sent,
not a live re-query.
Parameters
| Name | In | Type | Required | Description |
|---|
token | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | the link is unknown or expired |
Security: bearer
GET/api/v1/projects/template-gallery
GET /api/projects/template-gallery — shipped and org templates in one list.
Parameters
| Name | In | Type | Required | Description |
|---|
include_archived | query | boolean | No | |
category | query | string | No | |
Responses
Security: bearer
GET/api/v1/projects/{id}
GET /api/projects/{id}
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | not found |
Security: bearer
PATCH/api/v1/projects/{id}
PATCH /api/projects/{id} — tri-state partial update. Instant-first
(IF1/IF2): idempotency-keyed, version-gated, returns prior + new values.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
PatchProjectRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
GET/api/v1/projects/{id}/baseline
GET /api/projects/{id}/baseline — the most recent capture, or `null` when
the project has never been baselined.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/projects/{id}/baseline
POST /api/projects/{id}/baseline — records what the plan says now.
Every dated task's start and length are copied into its baseline columns and
the capture is recorded as an event, so a later slip has something to be
late against. Undated tasks stay undated in the baseline too: the capture
records the plan, it does not invent one.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CaptureBaselineRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
GET/api/v1/projects/{id}/billing-releases
GET /api/projects/{id}/billing-releases — the release ledger: every
staged milestone/fee for this project with its status (`pending`
bills on the next run reaching its window; `billed` carries the
consuming invoice; `cancelled` terminal).
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/billing-releases/{release_id}/cancel
POST /api/projects/{id}/billing-releases/{release_id}/cancel — cancel
a PENDING release (admin correction; terminal). Billed releases are
immutable — they ride an invoice, and invoices correct through credit
notes.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
release_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | release not visible/already settled (rls_sparse) |
Security: bearer
GET/api/v1/projects/{id}/calendar
GET /api/projects/{id}/calendar — the project's override, or `calendar:
null` when the organisation's calendar applies.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
PUT/api/v1/projects/{id}/calendar
PUT /api/projects/{id}/calendar — sets the project's working pattern. The
project's pattern wins for its own dates; nothing else changes.
No outbox event: the calendar is read when a date is computed, so nothing
downstream holds a stale copy of it.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
SetProjectCalendarRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
DELETE/api/v1/projects/{id}/calendar
DELETE /api/projects/{id}/calendar — drops the override so the
organisation's calendar applies again.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | no override to clear |
Security: bearer
GET/api/v1/projects/{id}/change-orders
GET /api/projects/{id}/change-orders
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/change-orders
POST /api/projects/{id}/change-orders — an empty draft with three ways in.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreateProjectChangeOrderRequest
Responses
| Status | Description |
|---|
200 | |
422 | validation failed |
Security: bearer
GET/api/v1/projects/{id}/change-orders/{change_order_id}
GET /api/projects/{id}/change-orders/{change_order_id}
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | not visible in scope (rls_sparse) |
Security: bearer
PATCH/api/v1/projects/{id}/change-orders/{change_order_id}
PATCH /api/projects/{id}/change-orders/{change_order_id} — drafts only.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Request body
PatchChangeOrderRequest
Responses
| Status | Description |
|---|
200 | |
409 | the order is no longer a draft |
Security: bearer
POST/api/v1/projects/{id}/change-orders/{change_order_id}/apply
POST .../apply — updates the plan and captures a baseline. It never bills.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
409 | not approved, or still waiting for the client |
Security: bearer
POST/api/v1/projects/{id}/change-orders/{change_order_id}/approve
POST .../approve — approval changes the document only. When the org asks for
portal acknowledgement the order waits for the client first.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Request body
ProjectChangeOrderDecisionRequest
Responses
Security: bearer
POST/api/v1/projects/{id}/change-orders/{change_order_id}/bill
POST .../bill — releases the money through the existing billing seam. A
refused release leaves the order applied and records why.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
422 | the change order carries no amount |
Security: bearer
POST/api/v1/projects/{id}/change-orders/{change_order_id}/reject
POST .../reject — the reason is required and stays on the record.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Request body
ProjectChangeOrderDecisionRequest
Responses
| Status | Description |
|---|
200 | |
422 | a rejection needs a reason |
Security: bearer
POST/api/v1/projects/{id}/change-orders/{change_order_id}/submit
POST .../submit — the author's last editable moment.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
change_order_id | path | string | Yes | |
Responses
Security: bearer
GET/api/v1/projects/{id}/client-updates
GET /api/projects/{id}/client-updates
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/client-updates
POST /api/projects/{id}/client-updates — drafts from what moved in the
period. With no movement it records a withheld update with the reason and
returns it; it never produces a cheerful empty letter.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
DraftUpdateRequest
Responses
| Status | Description |
|---|
200 | |
422 | the period ends before it starts |
Security: bearer
PATCH/api/v1/projects/{id}/client-updates/{update_id}
PATCH /api/projects/{id}/client-updates/{update_id} — drafts only.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
update_id | path | string | Yes | |
Request body
EditUpdateRequest
Responses
| Status | Description |
|---|
200 | |
422 | the body is empty |
Security: bearer
POST/api/v1/projects/{id}/client-updates/{update_id}/approve
POST .../approve
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
update_id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/client-updates/{update_id}/send
POST .../send — the send is the person's act. It is recorded here as the
state change; the delivery channel consumes the sent row, so no model can
put words in front of a client.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
update_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
409 | the update was not approved |
Security: bearer
POST/api/v1/projects/{id}/client-updates/{update_id}/withhold
POST .../withhold — records the honest refusal and why.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
update_id | path | string | Yes | |
Request body
WithholdUpdateRequest
Responses
| Status | Description |
|---|
200 | |
422 | a reason is required |
Security: bearer
GET/api/v1/projects/{id}/gantt
GET /api/projects/{id}/gantt — the dated timeline plus its undated
remainder, each phase carrying its budget burn.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
PUT/api/v1/projects/{id}/order
PUT /api/projects/{id}/order — the plan's order, written in one transaction.
A drag is one request, not one request per row: a reorder that half-landed
would leave the plan in an order nobody chose. A duplicate id in the request
is a client bug and is refused as a shape error; an id that is not the
project's is out of scope and answers the same 404 an invisible project does.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
ReorderRequest
Responses
| Status | Description |
|---|
200 | |
404 | the project, a phase or a task is not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
GET/api/v1/projects/{id}/phase-burn
GET /api/projects/{id}/phase-burn — the burn read model (report P3):
consumed approved billable minutes and card-priced value per phase
against the phase's budget, with a typed alert state: `none`, then
`warn` from 80 percent, then `over` from 100 percent. Without
`financial:read` the amounts and the alert are redacted (RB2).
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
GET/api/v1/projects/{id}/phases
GET /api/projects/{id}/phases — ordered by sort_order.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/phases
POST /api/projects/{id}/phases — adds a phase; emits
`project.phase_created`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreatePhaseRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
PATCH/api/v1/projects/{id}/phases/{phase_id}
PATCH /api/projects/{id}/phases/{phase_id} — tri-state partial update.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
phase_id | path | string | Yes | |
Request body
PatchPhaseRequest
Responses
| Status | Description |
|---|
200 | |
404 | phase not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
POST/api/v1/projects/{id}/phases/{phase_id}/complete
POST /api/projects/{id}/phases/{phase_id}/complete — stamps the phase
completed and, when it is a billing milestone, emits
`project.milestone_completed` in the same transaction (the core-billing
seam). Instant-first: the idempotency key guarantees a retried
completion can never double-emit the billing event.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
phase_id | path | string | Yes | |
Request body
MutationParams
Responses
| Status | Description |
|---|
200 | |
404 | phase not visible in scope (rls_sparse) |
409 | already completed, version conflict, or idempotency key reused |
Security: bearer
GET/api/v1/projects/{id}/risk
GET /api/projects/{id}/risk — the deterministic signals this project's
facts support, most severe first.
Severity comes from the rule (ADR 0034 decision 11). An AI surface may rank
and narrate these, never invent one or raise one's weight.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/projects/{id}/schedule/apply
POST /api/projects/{id}/schedule/apply — applies the same computation the
preview returned, in one transaction, and hands back what to send to
`/schedule/revert` to undo it.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
SchedulePlanRequest
Responses
| Status | Description |
|---|
200 | |
404 | a task or the project is not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
POST/api/v1/projects/{id}/schedule/preview
POST /api/projects/{id}/schedule/preview — what a set of moves would do,
computed by the same function the apply calls. Nothing is written.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
SchedulePlanRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
POST/api/v1/projects/{id}/schedule/revert
POST /api/projects/{id}/schedule/revert — restores the values an apply
handed back. A task outside the project is refused rather than skipped.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
ScheduleRevertRequest
Responses
| Status | Description |
|---|
200 | |
404 | a task or the project is not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
POST/api/v1/projects/{id}/schedule/scale
POST /api/projects/{id}/schedule/scale — multiplies the length of every
dated task in a window. `reschedule` re-ripples the plan from each changed
task so successors follow the new lengths.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
ScheduleScaleRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
GET/api/v1/projects/{id}/tasks
GET /api/projects/{id}/tasks — filtered by phase/status/assignee and
the milestone flag, sort_order-ordered.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
phase_id | query | — | No | |
status | query | TaskStatus | null | No | |
assignee_id | query | — | No | |
milestone | query | — | No | |
limit | query | integer | No | |
offset | query | integer | No | |
Responses
Security: bearer
POST/api/v1/projects/{id}/tasks
POST /api/projects/{id}/tasks — creates the task (optionally with its
dependency set) and emits `project.task_created` in one transaction.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreateTaskRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
PATCH/api/v1/projects/{id}/tasks/{task_id}
PATCH /api/projects/{id}/tasks/{task_id} — tri-state partial update.
`status: "completed"` is rejected: completion runs through the complete
endpoint (dependency gating + the billing seam).
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Request body
PatchTaskRequest
Responses
| Status | Description |
|---|
200 | |
404 | task not visible in scope (rls_sparse) |
409 | version conflict or idempotency key reused |
422 | validation failed |
Security: bearer
PUT/api/v1/projects/{id}/tasks/{task_id}/blocker
PUT /api/projects/{id}/tasks/{task_id}/blocker
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Request body
SetBlockerRequest
Responses
| Status | Description |
|---|
200 | |
422 | unknown blocker kind |
Security: bearer
DELETE/api/v1/projects/{id}/tasks/{task_id}/blocker
DELETE /api/projects/{id}/tasks/{task_id}/blocker
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Responses
Security: bearer
POST/api/v1/projects/{id}/tasks/{task_id}/complete
POST /api/projects/{id}/tasks/{task_id}/complete — the guarded
completion: every finish-to-start dependency must already be completed
(typed 409 `task_dependencies_unsatisfied` naming the blockers), then
`project.task_completed` fires — plus `project.milestone_completed`
when the task is a billing milestone. Instant-first: the idempotency
key makes retried completions replay instead of double-billing.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Request body
MutationParams
Responses
| Status | Description |
|---|
200 | |
404 | task not visible in scope (rls_sparse) |
409 | dependencies unsatisfied, already completed, version conflict, or idempotency key reused |
Security: bearer
GET/api/v1/projects/{id}/tasks/{task_id}/dependencies
GET /api/projects/{id}/tasks/{task_id}/dependencies
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | not found |
Security: bearer
PUT/api/v1/projects/{id}/tasks/{task_id}/dependencies
PUT /api/projects/{id}/tasks/{task_id}/dependencies — replaces the
whole dependency set, cycle-checked over the project graph BEFORE any
write; emits `project.task_updated`.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
task_id | path | string | Yes | |
Request body
SetDependenciesRequest
Responses
| Status | Description |
|---|
200 | |
404 | task not visible in scope (rls_sparse) |
422 | dependency set rejected (self-dep, cross-project, or cycle) |
Security: bearer
GET/api/v1/projects/{id}/zones
GET /api/projects/{id}/zones — the change windows and client closures the
timeline draws under the bars.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
Security: bearer
POST/api/v1/projects/{id}/zones
POST /api/projects/{id}/zones — states a window or a closure.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
Request body
CreateCalendarZoneRequest
Responses
| Status | Description |
|---|
200 | |
404 | project not visible in scope (rls_sparse) |
422 | validation failed |
Security: bearer
DELETE/api/v1/projects/{id}/zones/{zone_id}
DELETE /api/projects/{id}/zones/{zone_id} — removes the constraint.
Parameters
| Name | In | Type | Required | Description |
|---|
id | path | string | Yes | |
zone_id | path | string | Yes | |
Responses
| Status | Description |
|---|
200 | |
404 | no such zone in scope |
Security: bearer