---
title: "Update Schedule"
method: PATCH
path: "/api/v1/courses/{course_id}/schedule/{schedule_id}"
tags: ["api", "api", "courses"]
---

# Update Schedule

`PATCH /api/v1/courses/{course_id}/schedule/{schedule_id}`

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

## Path parameters

- `course_id` string, required
- `schedule_id` string, required

## Request body

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

## Response `200`

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)
