---
title: "Close Run"
method: POST
path: "/preview/evaluations/runs/{run_id}/close/{status}"
tags: ["Evaluations"]
---

# Close Run

`POST /preview/evaluations/runs/{run_id}/close/{status}`

## Path parameters

- `run_id` string, uuid, required
- `status` 'pending' | 'queued' | 'running' | 'success' | 'failure' | 'errors' | 'cancelled', required

## Query parameters

- `jit` boolean, nullable

## Response `200`

Successful Response

- EvaluationRunResponse
  - `count` integer
  - `run` EvaluationRun
    - `flags` EvaluationRunFlags
      - `is_live` boolean
      - `is_active` boolean
      - `is_closed` boolean
      - `has_queries` boolean
      - `has_testsets` boolean
      - `has_evaluators` boolean
      - `has_custom` boolean
      - `has_human` boolean
      - `has_auto` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `id` string, uuid, nullable
    - `version` string, nullable
    - `status` 'pending' | 'queued' | 'running' | 'success' | 'failure' | 'errors' | 'cancelled'
    - `data` EvaluationRunDataOutput
      - `steps` EvaluationRunDataStep[], nullable
        - `key` string, required
        - `type` 'input' | 'invocation' | 'annotation', required
        - `origin` 'custom' | 'human' | 'auto', required
        - `references` object, required
        - `inputs` EvaluationRunDataStepInput[], nullable
          - `key` string, required
      - `repeats` integer, nullable
      - `mappings` EvaluationRunDataMapping[], nullable
        - `column` EvaluationRunDataMappingColumn, required
          - `kind` string, required
          - `name` string, required
        - `step` EvaluationRunDataMappingStep, required
          - `key` string, required
          - `path` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 3 info
  - added the new optional `query` request parameter `jit`
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-14** `53da4c9de2b7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/evaluations/runs/:run_id/close/:status/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/42bb75a1c2e6?raw)
