Studies

Update the moves of a study chapter

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

post/api/study/{studyId}/{chapterId}/moves

Request

  • Base URL
    https://lichess.org
  • URL
    https://lichess.org/api/study/{studyId}/{chapterId}/moves
  • Auth
    OAuth 2
    Authorization code: https://lichess.org/oauth
    Token URL: https://lichess.org/api/token scopes: study:write

Path parameters

studyIdstring required

The study ID

chapterIdstring required

The chapter ID

Request body application/x-www-form-urlencoded

pgnstring required

PGN text containing the moves that will replace the chapter's existing moves. Any provided tags are ignored.

Response

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

Changes

No recorded changes to this operation across all 16 revisions of this API.