---
title: "List Relatives"
method: GET
path: "/api/v1/courses/{course_id}/students/{student_id}/relatives"
tags: ["api", "api", "courses"]
---

# List Relatives

`GET /api/v1/courses/{course_id}/students/{student_id}/relatives`

## 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}/students/{student_id}/relatives`
- Auth: HTTP bearer

A'zoning yaqinlari (ota, ona, aka, tog'a, ...).

## Path parameters

- `course_id` string, required
- `student_id` string, required

## Response `200`

Successful Response

- CourseRelativeList
  - `items` CourseRelative[]
    - `id` string, required
    - `student_id` string, required
    - `user` RelativeUser, required: Qidiruvda topilgan ilova foydalanuvchisi (yaqin sifatida qo'shish uchun).
      - `id` integer, required
      - `name` string, required
      - `email` string, nullable
      - `phone` string, nullable
    - `relation` 'ota' | 'ona' | 'aka' | 'opa' | 'uka' | 'singil' | 'toga' | 'amaki' | 'amma' | 'xola' | 'bobo' | 'buvi' | 'vasiy' | 'boshqa', required
    - `created_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)
