---
title: "Demo Create Exercise"
method: POST
path: "/demo-homework-helper/create-exercise"
tags: ["Demo Homework Helper"]
---

# Demo Create Exercise

`POST /demo-homework-helper/create-exercise`

1) Accept user-refined latex_content for the ephemeral session
2) Insert ephemeral doc with no solution
3) fetch_and_store_solution_in_memory in the background
4) Return { exercise_id } in the data

## Query parameters

- `session_id` string, required — Ephemeral session ID for the demo
- `lang` string — Language code, 'EN' or 'FR', for the demo

## Request body

- CreateExerciseRequest
  - `latex_content` string, required

## Response `200`

Successful Response

- RoutersDemoHomeworkHelperBasicResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable
  - `transcript` string, nullable
  - `url` string, nullable

## 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)
