> For the complete documentation index, see [llms.txt](/llms.txt).
> A full single-fetch corpus is available at [llms-full.txt](/llms-full.txt).
---
title: "Import from a run"
description: "Add an item to the draft from a completed workflow run, capturing its actual input and output."
method: "POST"
endpoint: "/api/v1/projects/:projectId/datasets/:id/import/run"
order: 11
group: "Import"
last_verified: 2026-07-27
---

<ApiEndpoint method="POST" endpoint="/api/v1/projects/:projectId/datasets/:id/import/run" description="Add an item to the draft from a completed workflow run, capturing its actual input and output.">
  <section>
    #### Body parameters
    <ApiAttribute name="run_id" type="string" description="The run to import." required={true} />
    <ApiAttribute name="expected_output" type="object" description="Override the expected output. Defaults to the run's actual output." required={false} />
  </section>
</ApiEndpoint>
