templates y combined_from para evitar errores en el procesamiento{
"user_id": 0,
"templates": [
"template_key_1",
"template_key_2"
],
"combined_from": [
"template_key_from_1",
"template_key_from_2"
],
"answers": [
{
"question": "question_key",
"answer": "answer text"
}
]
}{
"data": {
"combined_from": {
"failed": null,
"processed": [
"template_key_1", "template_key_2"
]
},
"templates": {
"failed": [
"template_key_from_2"
],
"processed": [
"template_key_from_1"
]
}
},
"message": "Answers saved",
"success": true
}curl --location '/api/v4/quiz/answers/import/api' \
--header 'x-api-key: {{api-key}}' \
--header 'service: {{service}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": 0,
"templates": [
"template_key_1", "template_key_2"
],
"combined_from": [
"template_key_from_1", "template_key_from_2"
],
"answers": [
{
"question": "question_key",
"answer": "answer text"
}
]
}'{
"data": {
"combined_from": {
"failed": null,
"processed": [
"allquizes"
]
},
"templates": {
"failed": null,
"processed": [
"datos_personales_del_usuario"
]
}
},
"message": "Answers saved",
"success": true
}