---
title: "Add corrected file"
method: POST
path: "/api/v1/runs/{id}/reviews/expected"
tags: ["Reviews"]
---

# Add corrected file

`POST /api/v1/runs/{id}/reviews/expected`

Attach one corrected file to a run review. Send multipart/form-data with `file` and optional `name` to upload a local file, or JSON with `outputFileName` and optional `expectedName` to copy an existing run output file.

## Path parameters

- `id` string, required — Run id.

## Request body

- RunReviewExpectedFileCopyRequest — JSON request body for copying one run output file into the corrected artifact set.
  - `outputFileName` string, required — Name of an existing run output file to copy into corrected artifacts.
  - `expectedName` string — Optional name for the copied corrected file. Defaults to the original output file name.

## Response `201`

Corrected file created.

- RunReviewExpectedFileMutationResponse
  - `name` string, required

## Other responses

- `400` — Validation error. Request shape did not match the spec.
- `401` — Missing or invalid API key
- `403` — API key lacks required scope
- `404` — Resource not found
- `413` — Payload too large. Upload exceeded the per-request size cap.
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.dev/eigenpal/apis/eigenpal-api.md) · [All operations](https://skmtc.dev/eigenpal/apis/eigenpal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eigenpal/eigenpal-api/revisions/dddcddf1975c/schema)
