Authorization: Bearer ********************{
"content": "How do you approach brainstorming new ideas?",
"options": [
{ "text": "I prefer working alone to generate creative solutions.", "categoryId": 1 },
{ "text": "I thrive on group discussions and collaboration.", "categoryId": 2 },
{ "text": "I focus on aligning ideas with organizational goals.", "categoryId": 3 },
{ "text": "I consider customer needs and preferences first.", "categoryId": 4 }
]
}curl --location 'http://localhost:3000/api/v1/culture-fit-assessments/questions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"content": "How do you approach brainstorming new ideas?",
"options": [
{ "text": "I prefer working alone to generate creative solutions.", "categoryId": 1 },
{ "text": "I thrive on group discussions and collaboration.", "categoryId": 2 },
{ "text": "I focus on aligning ideas with organizational goals.", "categoryId": 3 },
{ "text": "I consider customer needs and preferences first.", "categoryId": 4 }
]
}'{
"message": "Question created successfully",
"data": {
"id": 1,
"content": "How would you describe yourself?",
"createdAt": "2023-04-12T12:34:56.789Z",
"updatedAt": "2023-04-12T12:34:56.789Z",
"options": [
{
"id": 1,
"text": "Outgoing and social",
"isCorrect": true,
"category": {
"id": 1,
"name": "Adhocracy",
"description": "A flexible, adaptable organizational style focused on innovation and agility."
},
}
]
}
}