panel_grade
Used by Flash's study panel only; never call it yourself (use submit_review). Records the grade the user tapped and returns the panel's next card.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rating | Yes | 1=Again 2=Hard 3=Good 4=Easy | |
| card_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| deck | No | The session's deck and tags as asked for: the tags are the header's chips, and both let the panel start the session again after allowing more new cards; start only. | |
| tags | Yes | ||
| view | Yes | Which of the panel's views this is: always `study`. | |
| state | Yes | `card` (one to show), `held` (today's limits hold the rest back), `caught_up` (nothing due), or `empty` (no cards in the scope at all). | |
| preload | Yes | Signed links to warm: this card's back and the next card's front. | |
| recorded | Yes | False only from panel_grade, when the card had already been graded elsewhere (in the chat) and this grade was not recorded. | |
| reviewed | Yes | Reviews recorded in this session so far, in the panel or the chat: with `remaining`, the panel's progress ("2 / 10"). | |
| remaining | Yes | Cards in the queue, this one included. | |
| deck_label | No | The deck as the site shows it (`Cardio › ECG`), for the panel's header; start only. | |
| session_id | Yes | ||
| held_by_limit | Yes | Cards today's limits hold back. |