---
title: "Update Holiday Exercise"
method: PUT
path: "/admin/holiday-courses/exercises/{exercise_id}"
tags: ["Admin - Holiday Courses"]
---

# Update Holiday Exercise

`PUT /admin/holiday-courses/exercises/{exercise_id}`

Update a holiday course exercise.

Allows updating any combination of title, content, solution, and difficulty.
Updates the updated_at timestamp and optionally tracks the last editor.

Only accessible by admin users.

## Path parameters

- `exercise_id` string, required — The ID of the holiday course exercise to update

## Request body

- HolidayExerciseUpdatePayload — Request model for updating a holiday course exercise
  - `title` string, nullable
  - `content` string, nullable
  - `solution` string, nullable
  - `difficulty` 'easy' | 'medium' | 'hard', nullable
  - `hints1` string, nullable
  - `hints2` string, nullable
  - `hints3` string, nullable

## Response `200`

Successful Response

- HolidayExerciseResponse — Response model for holiday course exercise
  - `id` string, required
  - `title` string, nullable
  - `content` string, required
  - `solution` string, required
  - `difficulty` string, required
  - `hints1` string, nullable
  - `hints2` string, nullable
  - `hints3` string, nullable
  - `created_by_admin_id` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/ef67479ed898/schema)
