---
title: "Update the moves of a study chapter"
method: POST
path: "/api/study/{studyId}/{chapterId}/moves"
tags: ["Studies"]
---

# Update the moves of a study chapter

`POST /api/study/{studyId}/{chapterId}/moves`

Replaces the moves tree of a study chapter.
No tags will be modified.

## Path parameters

- `studyId` string, required
- `chapterId` string, required

## Response `204`

Moves updated, as the chapter exists and you are allowed to edit it.

## Other responses

- `400` — Bad request - might be the provided study/chapter doesn't exist, or you aren't allowed to edit it, or the PGN is invalid.

---

[API](https://skmtc.net/lichess/apis/lichess-org-api-reference.md) · [All operations](https://skmtc.net/lichess/apis/lichess-org-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lichess/lichess-org-api-reference/versions/1425db81eb3b/schema)
