---
title: "Add Student To Class As Admin"
method: POST
path: "/admin/users/{user_id}/classes"
tags: ["admin"]
---

# Add Student To Class As Admin

`POST /admin/users/{user_id}/classes`

## Path parameters

- `user_id` string, required

## Request body

- AdminAddStudentToClassBody
  - `class_id` string, required
  - `school_id` string, required

## Response `200`

Successful Response

- AdminAddStudentToClassResponse
  - `detail` string, required
  - `student_id` string, required
  - `class_id` string, required
  - `class_name` string, required
  - `teacher_name` string, required
  - `school_id` string, required
  - `school_name` 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-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
