---
title: "record what a run produced, so it outlives the jobs that produced it"
method: POST
path: "/w/{workspace}/ai_evals/experiments/collect"
tags: ["ai_evals"]
---

# record what a run produced, so it outlives the jobs that produced it

`POST /w/{workspace}/ai_evals/experiments/collect`

Called by a run's own flow as its last step. The answers and scores a run produced live in its jobs, which have their own retention; this copies them onto the run's rows. Reading a run does the same, so this is what covers a run nobody opened.

## Path parameters

- `workspace` string, required

## Query parameters

- `id` string, uuid, required

## Response `200`

how many of the run's cases are recorded

- integer

## Changes

> 176 revisions in range; 4 could not be searched.

- **2026-08-24** `5afc9f1a93f5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/windmill/apis/windmill-api/changes/w/:workspace/ai_evals/experiments/collect/post.md)

---

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