Lesson

Create/update AI Conversation

<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>
post/Lesson/UpdateAIConversation

Headers

X-Versionstring

Request body

lessonIdinteger required

Lesson identifier

instituteIdinteger required

Institute identifier

jsonFilestring required

The json file text that contains the question and answer conversation

Example request

{
  "lessonId": 10001,
  "instituteId": 1,
  "jsonFile": "[{\"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.\"}]"
}

Response

Success

Changes

No recorded changes to this endpoint across all 1 revision of this API.