---
title: "Update draft (auto-save on step change)"
method: PATCH
path: "/v1/scenes/wizard/draft/{id}"
tags: ["Scene Wizard"]
---

# Update draft (auto-save on step change)

`PATCH /v1/scenes/wizard/draft/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateDraftDto
  - `name` string — Scene name
  - `genre` string — Genre
  - `place` string — Place/Location
  - `timePeriod` string — Time period
  - `backstory` string — Backstory
  - `goal` string — Goal for the scene

## Response `200`

Draft updated successfully

- SceneDraftDto
  - `id` string, required
  - `name` string
  - `description` string
  - `coverImage` string
  - `genre` string
  - `place` string
  - `timePeriod` string
  - `backstory` string
  - `goal` string
  - `isDraft` boolean, required
  - `status` 'DRAFT' | 'IN_QUEUE' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'TIMED_OUT', required
  - `selectedCoverId` string
  - `covers` SceneCoverDto[], required — All covers for this scene
    - `id` string, required
    - `url` string — CDN URL of the cover image
    - `s3Key` string
    - `prompt` string
    - `source` 'UPLOAD' | 'GENERATED', required
    - `status` 'PENDING' | 'COMPLETED' | 'FAILED', required
    - `requestId` string
    - `isSelected` boolean, required
    - `avatarUrl` string — CDN URL of the cropped avatar image
    - `avatarS3Key` string — S3 key for the avatar image
    - `createdAt` string, date-time, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `404` — Draft not found

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
