Skip to content

Document flair and description parameters of POST /api/study. - #664

Merged
ornicar merged 3 commits into
lichess-org:masterfrom
ddobbelaere:feature/add-flair-descr-create-study
Jul 29, 2026
Merged

Document flair and description parameters of POST /api/study.#664
ornicar merged 3 commits into
lichess-org:masterfrom
ddobbelaere:feature/add-flair-descr-create-study

Conversation

@ddobbelaere

@ddobbelaere ddobbelaere commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This PR documents the final two missing parameters of the POST /api/study:

Note that in the backend code description is an optional string that can currently be true or false (or actually true and <something else> IIUC), hence why I didn't choose a boolean. This behavior is similar to the already document sticky parameter. But suggestions welcome of course. EDIT: changed to boolean.

image

@ornicar

ornicar commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Thanks. I think we should turn that into a boolean rather than solidifying it in documentation. It was a string to allow more values but it didn't prove to be useful.

@ddobbelaere

ddobbelaere commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. I think we should turn that into a boolean rather than solidifying it in documentation. It was a string to allow more values but it didn't prove to be useful.

Ok, will do.

Do you want me to also do the same for sticky?

@ornicar

ornicar commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Yes please

ornicar added a commit to lichess-org/lila that referenced this pull request Jul 29, 2026
ornicar added a commit to lichess-org/lila that referenced this pull request Jul 29, 2026
@ornicar
ornicar merged commit 2c46c5f into lichess-org:master Jul 29, 2026
6 checks passed
@ddobbelaere
ddobbelaere deleted the feature/add-flair-descr-create-study branch July 30, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants