#How to create a new *interactive* Chapter in a Study

5 messages · Page 1 of 1 (latest)

odd heath
#

Hi! I've been messing around with the API and I wanted to create a study of some problems from local PGNs I have.

Problem is that the only call I see to create a chapter is Import PGN into a study​ (POST) and I see no option to make the created chapter interactive .

Is there a way to do this?

raven compass
#

Try adding a query parameter mode with the value gamebook

odd heath
raven compass
#

Oh sorry, it should be in the body, same as with the other parameterers, pgn, name, orientation and variant
https://lichess.org/api#tag/studies/POST/api/study/{studyId}/import-pgn

(I found the parameter in a client library (https://github.com/tors42/chariot/blob/fd3e5a881f490fb2b9e25aa002eef5f16fed8a81/src/chariot/chariot/internal/impl/StudiesHandler.java#L94) and didn't notice it was for the body)

GitHub

Java client for the Lichess API. Contribute to tors42/chariot development by creating an account on GitHub.