---
title: "PUT /api/lessons/{id}"
method: PUT
path: "/api/lessons/{id}"
tags: ["api"]
---

# PUT /api/lessons/{id}

`PUT /api/lessons/{id}`

## Request body

- LessonWrite
  - `question` QuestionTitleAnswerOnly, nullable
    - `id` string, uuid, nullable
    - `title` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
    - `answers` QuestionAnswerWithoutLessonQuestion[]
      - `id` string, uuid
      - `answer` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
      - `position` integer
      - `correct` boolean
      - `next_lesson` string, uuid, nullable
      - `explanation` string, nullable — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
    - `type` 'multi_select' | 'multi_choice'
  - `title` string
  - `subtitle` string
  - `note` string, nullable
  - `summary` string
  - `written_content` string, nullable
  - `includes_video` boolean
  - `show_to_browser_link_in_slack` boolean
  - `video_url` string, nullable
  - `video_position` string, nullable
  - `curriculum` string, uuid
  - `position` integer
  - `editor_content` EditorState
    - `id` string, uuid
    - `note_editor_state` string, nullable
    - `summary_editor_state` string, nullable
    - `question_editor_state` string, nullable
    - `quiz_editor_state` string, nullable
    - `quiz_message_state` string, nullable
  - `is_simple_form` boolean

## Response `200`

OK

- LessonWrite
  - `question` QuestionTitleAnswerOnly, nullable
    - `id` string, uuid, nullable
    - `title` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
    - `answers` QuestionAnswerWithoutLessonQuestion[]
      - `id` string, uuid
      - `answer` string, required — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
      - `position` integer
      - `correct` boolean
      - `next_lesson` string, uuid, nullable
      - `explanation` string, nullable — You must use the Slack nomenclature for the markdown, for more info visit: https://api.slack.com/reference/surfaces/formatting
    - `type` 'multi_select' | 'multi_choice'
  - `title` string
  - `subtitle` string
  - `note` string, nullable
  - `summary` string
  - `written_content` string, nullable
  - `includes_video` boolean
  - `show_to_browser_link_in_slack` boolean
  - `video_url` string, nullable
  - `video_position` string, nullable
  - `curriculum` string, uuid
  - `position` integer
  - `editor_content` EditorState
    - `id` string, uuid
    - `note_editor_state` string, nullable
    - `summary_editor_state` string, nullable
    - `question_editor_state` string, nullable
    - `quiz_editor_state` string, nullable
    - `quiz_message_state` string, nullable
  - `is_simple_form` boolean

---

[API](https://skmtc.net/haekka/apis/snippets-api.md) · [All operations](https://skmtc.net/haekka/apis/snippets-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/haekka/snippets-api/versions/2a72ba99e389/schema)
