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

# Reformat Exercise Field

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

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

## Path parameters

- `exercise_id` string, required

## Request body

- RoutersPublicExercisesReformatRequest
  - `field` 'content' | 'solution', 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/ef67479ed898/schema)
