---
title: "Reformat Exercise Field"
method: POST
path: "/cpge-exercises/{exercise_id}/reformat"
tags: ["cpge_exercises"]
---

# Reformat Exercise Field

`POST /cpge-exercises/{exercise_id}/reformat`

Reformat the content or solution of a CPGE exercise using LLM.
Only admins can use this feature.

## Path parameters

- `exercise_id` string, required

## Request body

- RoutersCpgeExercisesReformatRequest
  - `field` 'content' | 'solution' | 'hints1' | 'hints2' | 'hints3', required
  - `text` string, required

## Response `200`

Successful Response

- ReformatResponse
  - `reformatted_text` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/437cd8414e9e/schema)
