---
title: "Stores the JPEG the stage editor captured for a chapter and returns the scene with its new `thumbnailPath` (WE-3220)."
method: PUT
path: "/api/script-assistant/sessions/{sessionId}/outline/scenes/{sceneId}/thumbnail"
tags: ["ScriptAssistant"]
---

# Stores the JPEG the stage editor captured for a chapter and returns the scene with its new \`thumbnailPath\` (WE-3220).

`PUT /api/script-assistant/sessions/{sessionId}/outline/scenes/{sceneId}/thumbnail`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/script-assistant/sessions/{sessionId}/outline/scenes/{sceneId}/thumbnail`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

Fixed `RequestSizeLimit` rather than `ConfigurableRequestSizeLimit`: the configurable
limits are per-environment settings and the base value of `Small` is 0. A 480px JPEG is
tens of KB; the validator caps the file at 1 MiB and this caps the multipart body at 2 MiB.

## Path parameters

- `sessionId` string, required
- `sceneId` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

OK

- OutlineSceneDto
  - `id` string, required
  - `title` string, required
  - `method` string, required
  - `learningObjective` string, required
  - `nodes` OutlineNodeDto[], required
    - `id` string, required
    - `nodeType` string, required
    - `purpose` string, required
    - `contentSketch` string, required
    - `speakerHint` string, nullable
    - `hasDecisionPoint` boolean, required
    - `outcomes` string[], nullable
    - `pageData` OutlinePageDataDto
      - `pages` OutlinePageDto[], required
        - `title` string, required
        - `sections` OutlineSectionDto[], required
          - `layout` string, required
          - `columnWidths` number[], required
          - `columns` array[], required
            - OutlineBlockDto[]
              - …
  - `edges` OutlineEdgeDto[], required
    - `id` string, required
    - `source` string, required
    - `target` string, required
    - `sourceHandle` string, required
    - `label` string, nullable
  - `orderIndex` integer, required
  - `location` string, nullable
  - `characters` OutlineNodeCharacterDto[], nullable
    - `id` string, required
    - `position` OutlineThreeDimensionalPositionDto
      - `x` number, double, required
      - `y` number, double, required
      - `z` number, double, required
    - `rotation` number, float, required
    - `pose` string, required
  - `thumbnailPath` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `413`: Content Too Large
- `415`: Unsupported Media Type
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
