---
title: "Confirm Student List"
method: POST
path: "/teacher/classes/{class_id}/confirm-student-list"
tags: ["Teacher"]
---

# Confirm Student List

`POST /teacher/classes/{class_id}/confirm-student-list`

Create pending students from the confirmed list.
For students with email: generate single-use code and send invitation email.

## Path parameters

- `class_id` string, required

## Request body

- ConfirmStudentListRequest
  - `students` ConfirmStudentRequest[], required
    - `id` string, nullable
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, nullable
    - `status` string, required

## Response `200`

Successful Response

- ConfirmStudentListResponse
  - `pending_students_created` integer, required
  - `pending_students_updated` integer, required
  - `emails_sent` integer, required
  - `skipped` integer, required
  - `errors` string[], required

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