---
title: "POST /api/hyperion/courses/{courseId}/problem-statements/rewrite"
method: POST
path: "/api/hyperion/courses/{courseId}/problem-statements/rewrite"
tags: ["hyperion-problem-statement"]
---

# POST /api/hyperion/courses/{courseId}/problem-statements/rewrite

`POST /api/hyperion/courses/{courseId}/problem-statements/rewrite`

## Path parameters

- `courseId` integer, required

## Request body

- ProblemStatementRewriteRequest — Request to rewrite a problem statement
  - `problemStatementText` string, required — Original problem statement text to be improved

## Response `200`

OK

- ProblemStatementRewriteResponse — Response containing rewritten problem statement
  - `rewrittenText` string, required — Improved problem statement text
  - `improved` boolean, required — Whether the text was actually improved

## Changes

> 37 revisions in range; 1 could not be searched.

- **2025-12-12** `89fbdf29f721` — 2 info
  - api tag `hyperion-problem-statement` added
  - api tag `hyperion-review-and-refine` removed
- **2025-09-11** `9366899c6bd6` — 1 info
  - endpoint added
- **2025-06-29** `afd4091eb170` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ls1intum/apis/artemis-application-server-api/changes/api/hyperion/courses/:courseId/problem-statements/rewrite/post.md)

---

[API](https://skmtc.dev/ls1intum/apis/artemis-application-server-api.md) · [All operations](https://skmtc.dev/ls1intum/apis/artemis-application-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ls1intum/artemis-application-server-api/revisions/cecac5f6c8e5/schema)
