---
title: "Create Join Request"
method: POST
path: "/student/classes/join-requests"
tags: ["Student"]
---

# Create Join Request

`POST /student/classes/join-requests`

## Request body

- ClassJoinRequestCreate
  - `code` string, required

## Response `200`

Successful Response

- StudentJoinRequestResponse
  - `id` string, required
  - `status` 'pending' | 'accepted' | 'refused', required
  - `class_id` string, required
  - `class_name` string, required
  - `teacher_name` string, required
  - `grade` string, nullable
  - `school_year` string, required
  - `created_at` string, date-time, required

## Other responses

- `404` — Resource not found
- `409` — Business rule violated
- `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/d367d251945b?raw)
