Crea una pregunta de opción múltiple.
curl --request POST \
--url https://cucuniversity.edtools.co/api/resource/Question \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "What is the time complexity of binary search?",
"question_type": "Single Correct Answer",
"options": [
{
"option": "O(n)",
"is_correct": 0
},
{
"option": "O(log n)",
"is_correct": 1
},
{
"option": "O(n²)",
"is_correct": 0
},
{
"option": "O(1)",
"is_correct": 0
}
]
}
'curl --request POST \
--url https://cucuniversity.edtools.co/api/resource/Question \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "What is the time complexity of binary search?",
"question_type": "Single Correct Answer",
"options": [
{
"option": "O(n)",
"is_correct": 0
},
{
"option": "O(log n)",
"is_correct": 1
},
{
"option": "O(n²)",
"is_correct": 0
},
{
"option": "O(1)",
"is_correct": 0
}
]
}
'