# PROJECTS

projects endpoints.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### POST /projects

Create a project (a card) on a board. It starts in the board's first step unless step_id says otherwise, and that step's checklist tasks are created straight away. Add one-off tasks with create_task and project_id. The owner defaults to you.

**Scopes:** `projects:write` — [full detail](./projects/post-projects.md)

### POST /projects/boards

Create a project board with its steps (columns) and each step's standard checklist in one call. Leave out steps for To do, In progress, Done. Mark the last step is_final so projects reaching it are completed. When a project reaches a step its checklist becomes tasks, and finishing the last open task of the current step moves the project to the next step automatically.

**Scopes:** `projects:write` — [full detail](./projects/post-projects-boards.md)

### DELETE /projects/:project_id

Delete a project together with all of its tasks and its history. Destructive.

**Scopes:** `projects:delete` — [full detail](./projects/delete-projects-project-id.md)

### DELETE /projects/boards/:board_id

Delete an empty project board with its steps and checklists. Refused while the board has projects. Destructive.

**Scopes:** `projects:delete` — [full detail](./projects/delete-projects-boards-board-id.md)

### GET /projects/:project_id

Fetch one project with its board's steps in order, the tasks grouped under each step (with subtasks), progress overall and per step, members and the history of step moves.

**Scopes:** `projects:read` — [full detail](./projects/get-projects-project-id.md)

### GET /projects/boards/:board_id

Fetch one project board with its steps in order and each step's checklist.

**Scopes:** `projects:read` — [full detail](./projects/get-projects-boards-board-id.md)

### GET /projects/boards

List the workspace's project boards (Work > Projects > Boards) with their steps in order, each step's checklist and how many open projects sit in each step. Boards are for the team's own staged work; customer jobs are opportunities with work orders, not projects.

**Scopes:** `projects:read` — [full detail](./projects/get-projects-boards.md)

### GET /projects

List projects (cards on the project boards) with their board, step, owner, client and task progress (done of total). Defaults to open projects; private projects you are not part of are left out.

**Scopes:** `projects:read` — [full detail](./projects/get-projects.md)

### POST /projects/:project_id/move

Move a project to another step, or to a step on another board. The new step's checklist tasks are created. Tasks still open in the step it left stay open, and are listed in left_open_tasks with a warning. Reaching a final step completes the project. You do not need this to advance after finishing a step's tasks: that happens automatically.

**Scopes:** `projects:write` — [full detail](./projects/post-projects-project-id-move.md)

### PATCH /projects/:project_id

Update a project's details: name, summary, owner, client, dates, priority, tags, private and members. To change its step or board use move_project.

**Scopes:** `projects:write` — [full detail](./projects/patch-projects-project-id.md)

### PATCH /projects/boards/:board_id

Update a project board: rename it, set its late alert person, connect other boards, hide it, or replace its steps and checklists. To change steps, read the board first and send the whole steps list back with the ids of steps to keep; a step left out is deleted (refused while projects sit on it).

**Scopes:** `projects:write` — [full detail](./projects/patch-projects-boards-board-id.md)
