1 Block contract
Artem Rudiak edited this page 2025-08-02 20:16:16 +04:00

Common block schema

{
    "id":"",
    "blockType":"",
    "data":{},
    "position":""
}

Data field schema depends on blockType field.

Text block data

As all the text data stores as markdown text, the only field of this block text will contain just markdown-text.

{
    "text":""
}

Task block data

Task block contains field for task name and description.

{
    "name":"",
    "description":"",
    "taskId":"",
    "maxGrade":"",
    "maxAttempts":"",
    "deadlineAt":"",
    "availableAt": ,
    "teamTask": false, // Not implemented now
    "available": true,
}