---
title: "Retry writing a test"
method: POST
path: "/api/v1/eval-cases/{case_id}/authoring"
tags: ["authed"]
---

# Retry writing a test

`POST /api/v1/eval-cases/{case_id}/authoring`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/eval-cases/{case_id}/authoring`
- Auth: none declared

Starts writing a test again after it failed for a reason that can
pass, such as a spending cap or a passing fault.

## Path parameters

- `case_id` string, uuid, required: The test's id, as list_tests returns it.

## Response `202`

Successful Response

- TestSummary: One test in an agent's list of tests.
  - `id` string, uuid, required: The test's id.
  - `agent_id` string, uuid, required: The agent the test belongs to.
  - `conversation_id` string, uuid, required: The conversation the test came from.
  - `conversation_title` string, required: That conversation's title.
  - `title` string, required: The test's title; empty until it is written.
  - `status` 'authoring' | 'authored' | 'admitting' | 'repairing' | 'ready' | 'broken' | 'refused' | 'failed', required
  - `status_reason` string, nullable, required: A sentence saying why the test is where it is, when there's more to say.
  - `status_retryable` boolean, required: Whether writing the test can be tried again.
  - `assertion_count` integer, required: How many checks the test's latest version makes.
  - `version_number` integer, nullable, required: The test's latest version; null until it is written.
  - `created_by_user_id` string, uuid, nullable, required: The member who added it.
  - `created_at` string, date-time, required: When it was added.
  - `updated_at` string, date-time, required: When it last changed.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

## Changes

- **2026-11-03** `c6ac9fd6657f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/teaflask/apis/teaflask-api/changes/api/v1/eval-cases/:case_id/authoring/post.md)

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/c6ac9fd6657f?raw)
