v3

OpenAPI 3.1.0AGPL-3.0-or-later2026-07-311871891.1 MB
Studies

Import PGN into a study

Imports arbitrary PGN into an existing study. Creates a new chapter in the study. If the PGN contains multiple games (separated by 2 or more newlines) then multiple chapters will be created within the study. Note that a study can contain at most 64 chapters.

post/api/study/{studyId}/import-pgn

Path parameters

studyIdstring required

ID of the study

Response

The chapters that were created.

Example response

{
  "chapters": [
    {
      "id": "iBjmYBya",
      "name": "test 2",
      "players": [
        {
          "name": "Carlsen, Magnus",
          "rating": 2837
        },
        {
          "name": "Chadaev, Nikolay",
          "rating": 2580
        }
      ],
      "status": "1-0"
    }
  ]
}