Documentation Index
Fetch the complete documentation index at: https://docs.coraltalk.com/llms.txt
Use this file to discover all available pages before exploring further.
Roleplay
A roleplay is a scenario-based speaking assignment where students practice a conversation in a defined role.Endpoints
| Method | Path | Description |
|---|---|---|
POST | /roleplay | Create |
GET | /roleplay | List (?classId= optional) |
GET | /roleplay/:id | Get |
PUT | /roleplay/:id | Update |
DELETE | /roleplay/:id | Delete |
Create
| Field | Required | Description |
|---|---|---|
name | Yes | Scenario title |
classId | Yes | Class ID |
roleplayStudentRole | Yes | Student’s role |
roleplayCoralRole | Yes | Coral’s role |
roleplayScenario | Yes | Scenario description |
roleplayDuration | No | Max duration (seconds, default 600) |
Student URL
https://exams.yourschool.edu/exam/{EXAM_ID}/roleplay