---
title: "Update Exercise"
method: PATCH
path: "/api/v1/my/exercises/{exercise_id}"
tags: ["api", "api", "exercises"]
---

# Update Exercise

`PATCH /api/v1/my/exercises/{exercise_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/my/exercises/{exercise_id}`
- Auth: HTTP bearer

## Path parameters

- `exercise_id` integer, required

## Request body

- ExerciseUpdate
  - `title` string, nullable
  - `description` string, nullable
  - `group_categories` string[], nullable
  - `is_visible` boolean, nullable
  - `body` unknown[], nullable
    - unknown
  - `access` string, nullable
  - `plan_ids` string[], nullable

## Response `200`

Successful Response

- ExerciseDetail
  - `id` integer, required
  - `title` string, required
  - `description` string, nullable
  - `group_categories` string[], required
  - `is_visible` boolean, required
  - `created_at` string, date-time, required
  - `author_id` integer, nullable
  - `access` string
  - `body` unknown[], required
    - unknown
  - `plan_ids` string[]

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