---
title: "Correct Project"
method: POST
path: "/api/projects/{project_id}/correct"
---

# Correct Project

`POST /api/projects/{project_id}/correct`

## Request

- Base URL: `https://app.pharos.bio` (the document declares no server; this is the origin it was published from)
- URL: `https://app.pharos.bio/api/projects/{project_id}/correct`
- Auth: none declared

Apply a quick correction to a specific file or ask a question about the results.

Three auto-detected modes:
- Text correction (target is .md/.txt) → LLM edits the file in-place
- Figure correction (target is .png/.svg) → LLM modifies the script + re-runs it
- Q&A (no target) → LLM answers a question about the paper/results

## Path parameters

- `project_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- CorrectionRequest: Body for POST /api/projects/{id}/correct — quick targeted correction.
  - `instruction` string, required
  - `target_file` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pharos/apis/agentic-data-scientist.md) - [All operations](https://skmtc.dev/pharos/apis/agentic-data-scientist/llms.txt) - [OpenAPI document](https://skmtc.dev/pharos/apis/agentic-data-scientist/revisions/7c77a7fe3870?raw)
