---
title: "Upload expected files"
method: POST
path: "/api/v1/automations/{id}/examples/{exampleId}/expected"
tags: ["Evaluation"]
---

# Upload expected files

`POST /api/v1/automations/{id}/examples/{exampleId}/expected`

Upload one or more files into the expected folder for an automation dataset example. Use `$file` references such as `expected/result.pdf` from expected JSON to compare file outputs.

## Path parameters

- `id` string, required — Automation id or typed alias.
- `exampleId` string, required — Dataset example id.

## Response `201`

Uploaded expected files.

- DatasetExampleExpectedFileUploadResponse
  - `uploaded` string[], required — Stored expected file paths.

## 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)
