Authorization: Bearer ********************[{
"content": "Which of the cities is capital of France?",
"typeId": 1,
"mark": 5,
"difficultyLevel": "easy",
"options": [
{ "text": "Paris", "isCorrect": true },
{ "text": "Lyon", "isCorrect": false },
{ "text": "Marseille", "isCorrect": false }
]
}]curl --location 'http://localhost:3000/api/v1/questions/1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[{
"content": "Which of the cities is capital of France?",
"typeId": 1,
"mark": 5,
"difficultyLevel": "easy",
"options": [
{ "text": "Paris", "isCorrect": true },
{ "text": "Lyon", "isCorrect": false },
{ "text": "Marseille", "isCorrect": false }
]
}]'{
"message": "Questions added successfully",
"data": {
"id": 1,
"companyId": 1,
"reference": "98a06536-28a8-4e2a-84c6-8ac2dbbfd157",
"title": "Test",
"recruiter": "test",
"role": "test",
"description": "Description of test",
"welcomeText": "Welcome",
"thankYouText": "Thank you",
"isIntroVideoNeeded": false,
"createdAt": "2025-02-06T13:58:53.575Z",
"updatedAt": "2025-02-06T13:58:53.575Z",
"questions": [
{
"id": 38,
"typeId": 1,
"assessmentId": 1,
"content": "oooooo?",
"mark": 5,
"difficultyLevel": "easy",
"createdAt": "2025-02-07T10:36:16.922Z",
"updatedAt": "2025-02-07T10:36:16.922Z",
"options": [
{
"id": 150,
"questionId": 38,
"text": "Paris",
"isCorrect": true,
"createdAt": "2025-02-07T10:36:16.922Z",
"updatedAt": "2025-02-07T10:36:16.922Z"
},
{
"id": 151,
"questionId": 38,
"text": "Lyon",
"isCorrect": false,
"createdAt": "2025-02-07T10:36:16.922Z",
"updatedAt": "2025-02-07T10:36:16.922Z"
},
{
"id": 152,
"questionId": 38,
"text": "Marseille",
"isCorrect": false,
"createdAt": "2025-02-07T10:36:16.922Z",
"updatedAt": "2025-02-07T10:36:16.922Z"
}
]
}
}
}
}