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

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

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

## Path parameters

- `courseId` integer, required

## Request body

- ProblemStatementGenerationRequest — Request to generate a problem statement
  - `userPrompt` string, required — User prompt describing the problem statement requirements

## Response `200`

OK

- ProblemStatementGenerationResponse — Response containing generated problem statement
  - `draftProblemStatement` string — Draft problem statement text

## Changes

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

- **2026-05-02** `039041cdc17b` — 1 breaking
  - the `userPrompt` request property's minLength was increased from `0` to `1`
- **2026-03-09** `b6393db4b0bf` — 1 warning
  - removed the optional property `error` from the response with the `200` status
- **2026-03-02** `096afb6ee792` — 1 info
  - added the optional property `error` to the response with the `200` status
- **2026-02-23** `0447cb75bafb` — 1 warning
  - removed the optional property `error` from the response with the `200` status
- **2025-12-12** `89fbdf29f721` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/ls1intum/apis/artemis-application-server-api/changes/api/hyperion/courses/:courseId/problem-statements/generate/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)
