File a run under a project
file_runFile a run you already started under a project, like the console’s "File under project". Its kept notes are retagged project:<id>: they join that project’s search scope and later runs there reuse them. Nothing is rerun or charged. Only queued or finished (done, failed, aborted) runs can be filed; a running, paused or blocked one is refused (run_not_filable), so file it when it finishes. Filing into its current project changes nothing; out of a DIFFERENT project needs move: true. Example: {"run_id":"run_01…","project_id":"proj_01…"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | Set true to move a run that is already filed under a DIFFERENT project; its notes leave that project’s scope. The default refuses the move. | |
| run_id | Yes | A run id (`run_…`), from start_run, list_runs or a report hit in search_notes. | |
| project_id | Yes | The project to file the run under: a `proj_…` id from list_projects or create_project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run that was filed. | |
| status | Yes | The run’s status. | |
| changed | Yes | false when the run was already filed under this project, so nothing was done. | |
| project_id | Yes | The project it is now filed under. | |
| notes_retagged | Yes | Vault notes moved into the project scope by this call. 0 when nothing changed, when the run kept no notes, or when the vault was unreachable (the run is filed either way). | |
| previous_project_id | Yes | Where it was filed before this call; null when it was unfiled. |