---
title: "Add Member"
method: POST
path: "/api/v1/courses/{course_id}/members"
tags: ["api", "api", "courses"]
---

# Add Member

`POST /api/v1/courses/{course_id}/members`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/courses/{course_id}/members`
- Auth: HTTP bearer

Kurs-xodim kursga a'zo qo'shadi (o'quvchi/o'qituvchi/ota-ona/xodim…).

## Path parameters

- `course_id` string, required

## Request body

- MemberCreate: Admin/kurs-admin a'zo qo'shishi (har qanday rol). user_id ixtiyoriy — ilova foydalanuvchisiga bog'lash uchun.
  - `full_name` string, required
  - `phone` string, nullable
  - `email` string, nullable
  - `status` 'request' | 'student' | 'teacher' | 'supportTeacher' | 'parent' | 'staff' | 'spam': Kurs o'quvchisining roli/holati (COURSES_API.md §3).
  - `group_id` string, nullable
  - `user_id` integer, nullable
  - `parent_of` string, nullable

## Response `201`

Successful Response

- CourseStudent
  - `id` string, required
  - `full_name` string, required
  - `email` string, nullable
  - `phone` string, nullable
  - `avatar_url` string, nullable
  - `mastery_percent` integer
  - `has_debt` boolean
  - `status` 'request' | 'student' | 'teacher' | 'supportTeacher' | 'parent' | 'staff' | 'spam': Kurs o'quvchisining roli/holati (COURSES_API.md §3).
  - `subscription` 'active' | 'trial' | 'debtor' | 'expired': Kurs o'quvchisining obuna (reja) holati (COURSES_API.md §3).
  - `group_id` string, nullable
  - `is_course_admin` boolean
  - `parent_of` string, nullable
  - `rank` integer, nullable
  - `contacts` StudentContact[]
    - `relation` string, required
    - `phone` string, required
  - `payments` LessonPayment[]
    - `lesson` integer, required
    - `due` integer, required
    - `paid` integer, required
  - `phone_verification_status` string, nullable
  - `enrolled_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
