Question Bank API lets you upload your question bank to Miso. A question bank is a list of questions that can be used for Question Autocomplete and Similar Question Search.
This API follows a replace-all model, i.e. a successful upload request will replace all the existing questions in the question bank.
For example, the following request will replace the existing question bank with the given three questions:
POST /v1/qa/questions
{"data": [
{"question": "What is python?"},
{"question": "What is list comprehension?"},
{"question": "How to sort a list in Python?"}
]}
Your secret API key is used to access every Miso API endpoint. You should secure this key and only use it on a backend server. Never leave this key in your client-side JavaScript code. If the private key is compromised, you can revoke it in Dojo and get a new one.
Specify your secret key in the api_key query parameter. For example:
POST /v1/users?api_key=039c501ac8dfcac91c6f05601cee876e1cc07e17Post questions request