---
title: "Regenerate Executive Summary"
method: POST
path: "/api/v1/regenerate-executive-summary"
tags: ["Chat"]
---

# Regenerate Executive Summary

`POST /api/v1/regenerate-executive-summary`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/regenerate-executive-summary`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Regenerate executive summary based on refined cards.
Only creates a new ES version if cards have been modified since last ES generation.

## Request body

- RegenerateESRequest
  - `report_id` string, required

## Response `200`

Successful Response

- RegenerateESResponse
  - `success` boolean, required
  - `message` string, required
  - `new_es_version` integer, nullable
  - `updated_summary` string, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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