---
title: "Get Or Create Trial Run"
method: POST
path: "/teacher/assignments/{assignment_id}/trial-run"
tags: ["teacher_assignments"]
---

# Get Or Create Trial Run

`POST /teacher/assignments/{assignment_id}/trial-run`

Get or create a trial run session for a teacher to test their assignment.
Returns existing session if found, creates new one if not.

## Path parameters

- `assignment_id` string, required

## Response `200`

Successful Response

- RoutersExerciseAssignmentsBasicResponse
  - `status` string, required
  - `message` string, required
  - `assignment_id` 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.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
