---
title: "Save Reflection"
method: PUT
path: "/api/learning-plans/instances/{instance_id}/reflections/{day_index}"
tags: ["learning-plans"]
---

# Save Reflection

`PUT /api/learning-plans/instances/{instance_id}/reflections/{day_index}`

Create or edit one day's reflection row. Idempotent, so the client can
re-save freely as the user edits or re-answers.

## Path parameters

- `instance_id` string, required
- `day_index` integer, required

## Headers

- `x-user-id` string, nullable

## Request body

- SaveReflectionRequest — Both fields are optional and written independently: the quiz is saved as the user taps an answer, the reflection when they finish the day. Omitting a field leaves the stored value untouched.
  - `body` string, nullable
  - `quiz_answers` QuizAnswer[], nullable
    - `question_index` integer, required
    - `selected_index` integer, required
    - `correct` boolean, required

## Response `200`

Successful Response

- LearningPlanReflection
  - `instance_id` string, required
  - `day_index` integer, required
  - `body` string, required
  - `quiz_answers` QuizAnswer[]
    - `question_index` integer, required
    - `selected_index` integer, required
    - `correct` boolean, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usecreed/apis/creed-api.md) · [All operations](https://skmtc.dev/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usecreed/creed-api/revisions/fa7408e68262/schema)
