---
title: "POST /api/hyperion/programming-exercises/{exerciseId}/consistency-check"
method: POST
path: "/api/hyperion/programming-exercises/{exerciseId}/consistency-check"
tags: ["hyperion-problem-statement"]
---

# POST /api/hyperion/programming-exercises/{exerciseId}/consistency-check

`POST /api/hyperion/programming-exercises/{exerciseId}/consistency-check`

## Path parameters

- `exerciseId` integer, required

## Query parameters

- `skipThreadContext` boolean

## Response `200`

OK

- ConsistencyCheckResponse — Response containing consistency check results
  - `timestamp` string, date-time, required — Timestamp of the response generation
  - `issues` ConsistencyIssue[], required — List of consistency issues found
    - `severity` 'LOW' | 'MEDIUM' | 'HIGH', required — Severity of the issue
    - `category` 'METHOD_RETURN_TYPE_MISMATCH' | 'METHOD_PARAMETER_MISMATCH' | 'CONSTRUCTOR_PARAMETER_MISMATCH' | 'ATTRIBUTE_TYPE_MISMATCH' | 'VISIBILITY_MISMATCH' | 'IDENTIFIER_NAMING_INCONSISTENCY', required — Category of the issue
    - `description` string, required — Detailed description of the issue
    - `suggestedFix` string, required — Suggested fix for the issue
    - `relatedLocations` ArtifactLocation[], required — Related locations across artifacts
      - `type` 'PROBLEM_STATEMENT' | 'TEMPLATE_REPOSITORY' | 'SOLUTION_REPOSITORY' | 'TESTS_REPOSITORY', required — Type of artifact
      - `filePath` string, required — Path to file, empty or problem_statement.md for problem statement
      - `startLine` integer, required — Start line number (1-based)
      - `endLine` integer, required — End line number (1-based)
      - `suggestedInlineFix` string, nullable — Optional inline replacement code for this location
  - `timing` Timing — Response containing consistency check timing
    - `startTime` string — Starting time
    - `endTime` string — Ending time
    - `durationS` number, double — Duration of consistency check
  - `tokens` Tokens — Response containing consistency check tokens
    - `prompt` integer — Prompt token length
    - `completion` integer — Completion token length
    - `total` integer — Total token length
  - `costs` Costs — Response containing consistency check costs
    - `promptEur` number, double — Prompt costs in EUR
    - `completionEur` number, double — Completion costs in EUR
    - `totalEur` number, double — Total costs in EUR

## Changes

- **2026-05-02** `039041cdc17b` — 1 info
  - added the optional property `issues/items/relatedLocations/items/suggestedInlineFix` to the response with the `200` status
- **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/programming-exercises/:exerciseId/consistency-check/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)
