---
title: "Create/update AI Conversation"
method: POST
path: "/Lesson/UpdateAIConversation"
tags: ["Lesson"]
---

# Create/update AI Conversation

`POST /Lesson/UpdateAIConversation`

<br>
  <b>JSONFile sample</b>
</br>
<br>[{\"id\":1,\"question\":\"What is quantum computing?\",\"answer\":\"Quantum computing is a type of computing that uses quantum-mechanical phenomena, such as superposition and entanglement, to perform operations on data. In classical computing, data is represented by bits, which can have a value of either 0 or 1. In quantum computing, data is represented by quantum bits, or qubits, which can exist in multiple states simultaneously.\"},{\"id\":2,\"question\":\"What are qubits?\",\"answer\":\"Qubits (short for quantum bits) are the basic units of quantum information. They can exist in multiple states simultaneously, unlike classical bits which can only exist in two states (0 or 1).\"},{\"id\":3,\"question\":\"What are the advantages of quantum computing?\",\"answer\":\"Quantum computing has the potential to solve certain problems much faster than classical computing. It can also be used for tasks such as cryptography, simulation, optimization and machine learning that are currently infeasible on classical computers.\"}] </br>

## Headers

- `X-Version` string

## Request body

- UpdateAIConversationRequest
  - `lessonId` integer, required — Lesson identifier
  - `instituteId` integer, required — Institute identifier
  - `jsonFile` string, required — The json file text that contains the question and answer conversation

## Response `200`

Success

---

[API](https://skmtc.dev/eon-xr/apis/eonxr-api.md) · [All operations](https://skmtc.dev/eon-xr/apis/eonxr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eon-xr/eonxr-api/revisions/538c75161c64/schema)
