---
title: "Update Scene Sequence"
method: PUT
path: "/api/projects/{project_id}/scenes/{scene_id}/sequence"
---

# Update Scene Sequence

`PUT /api/projects/{project_id}/scenes/{scene_id}/sequence`

Update the element sequence for a scene.

This endpoint allows reordering keyframes and videos within a scene
by providing a new ordered list of elements.

Args:
    project_id: Project ID
    scene_id: Scene ID
    request: New element sequence
    current_user: Authenticated user
    db: Database session
    
Returns:
    Updated scene with new element sequence

## Path parameters

- `project_id` string, required
- `scene_id` string, required

## Request body

- UpdateSceneSequenceRequest — Update the element sequence for a scene
  - `elements` object[], required — Ordered list of elements with type, id, startTime, duration

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/latted/apis/motion-graphics-designer-api.md) · [All operations](https://skmtc.dev/latted/apis/motion-graphics-designer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latted/motion-graphics-designer-api/revisions/36d149b525df/schema)
