---
title: "Rename input file"
method: PATCH
path: "/api/v1/automations/{id}/examples/{exampleId}/input/{path}"
tags: ["Evaluation"]
---

# Rename input file

`PATCH /api/v1/automations/{id}/examples/{exampleId}/input/{path}`

Rename one input file attached to an automation dataset example. The parent folder is preserved.

## Path parameters

- `id` string, required — Automation id or typed alias.
- `exampleId` string, required — Dataset example id.
- `path` string, required — Slash-delimited path under the example input folder.

## Request body

- DatasetExampleInputFileRenameRequest
  - `newFilename` string, required — New basename for the file. The parent folder is preserved.

## Response `200`

Renamed input file.

- DatasetExampleInputFileRenameResponse
  - `ok` true, required
  - `filename` string, required
  - `path` string, required — Updated input file path.

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