---
title: "Retired: regenerating is deleting the drafts and pressing Generate again"
method: POST
path: "/v1/days/{day}/regenerate"
tags: ["pipeline"]
---

# Retired: regenerating is deleting the drafts and pressing Generate again

`POST /v1/days/{day}/regenerate`

## Request

- Base URL: `https://api.sixminute.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sixminute.ai/v1/days/{day}/regenerate`
- Auth: HTTP bearer

Answers 410 `gone` since the generate-reliability plan (O4): delete the drafts of the window (`DELETE /v1/entries/{id}`) and press Generate (`POST /v1/days/{day}/generate`), which writes new drafts over the freed time. Removed by the follow-up.

## Path parameters

- `day` string, required

## Request body

- object
  - `from` string, date-time, required
  - `to` string, date-time, required

## Response `202`

Never answered since O4.

- object
  - `run_id` string, required

## Other responses

- `400`: The body, query or path did not validate; `errors` lists the fields.
- `401`: No bearer token, or one that does not verify or has expired.
- `403`: The token verified but may not do this: no organisation, not provisioned, wrong role, or a device problem.
- `410`: The route is gone and changes nothing; the `type` says which.
- `422`: The request is well-formed but cannot be carried out as it stands.

---

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