---
title: "Create Schedule"
method: POST
path: "/api/v1/courses/{course_id}/schedule"
tags: ["api", "api", "courses"]
---

# Create Schedule

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

## 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}/schedule`
- Auth: HTTP bearer

## Path parameters

- `course_id` string, required

## Request body

- ScheduledLessonCreate
  - `group_id` string, required
  - `title` string, required
  - `type` 'regular' | 'additional', required: Kalendarga qo'yilgan dars turi (COURSES_API.md §3).
  - `start` string, date-time, required
  - `duration_minutes` integer
  - `lesson_id` string, nullable
  - `teacher_id` string, nullable
  - `note` string, nullable
  - `auto_generated` boolean

## Response `201`

Successful Response

- ScheduledLesson
  - `id` string, required
  - `group_id` string, required
  - `title` string, required
  - `type` 'regular' | 'additional', required: Kalendarga qo'yilgan dars turi (COURSES_API.md §3).
  - `start` string, required
  - `duration_minutes` integer
  - `lesson_id` string, nullable
  - `teacher_id` string, nullable
  - `note` string, nullable
  - `auto_generated` boolean
  - `is_past` boolean

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