---
title: "submit lesson practice for linear"
method: POST
path: "/v2/lesson/practice"
tags: ["coursev2"]
---

# submit lesson practice for linear

`POST /v2/lesson/practice`

every flashcard and practice will be submitted to this api

## Headers

- `Authorization` string, required

## Request body

- BluenteInternalCourseV2ModelLessonPracticeReq
  - `code` string — course code
  - `id` integer — lesson id
  - `learn_word` integer[] — only for role play
  - `msg_count` integer — only for role play
  - `practices` object[] — example: [{'word_id':bool}],the array sequence is the practice sequence, the key is practice question word id, and the value is the practice result that answer is correct or not.
  - `word_id` integer — flashcard word id, reserve field, ignore it

## Response `200`

success, code is 0

- object
  - `code` integer — 0=success，only parse data when code=0
  - `data` object — real data
    - `color` string
    - `correct_practice` integer
    - `score` integer
    - `total_practice` integer
    - `trophy_img` string
  - `message` string — tip message

---

[API](https://skmtc.net/bluente/apis/bluente-api.md) · [All operations](https://skmtc.net/bluente/apis/bluente-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluente/bluente-api/revisions/5c90e58bf672/schema)
