Bulk Save Pre/Post Answer
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"activityId":"6b0f1994-2ed2-11ef-bee7-0a71e33928b1",
"questionAnswer" : [
{
"questionId":"9",
"answer":"1"
},
{
"questionId":"10",
"answer":"1"
},
{
"questionId":"11",
"answer":"1"
}
]
}
Request Code Samples
curl --location --request POST 'https://service-dash.dlabssaas.io/rest/web/secured/participant/pre-post/answer/bulk-save' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"activityId":"6b0f1994-2ed2-11ef-bee7-0a71e33928b1",
"questionAnswer" : [
{
"questionId":"9",
"answer":"1"
},
{
"questionId":"10",
"answer":"1"
},
{
"questionId":"11",
"answer":"1"
}
]
}'
Responses
application/json {
"status": "success",
"data": {
"activityId": "6b0f1994-2ed2-11ef-bee7-0a71e33928b1",
"questionAnswer": [
{
"questionId": "9",
"answer": "1"
},
{
"questionId": "10",
"answer": "1"
},
{
"questionId": "11",
"answer": "1"
}
]
},
"info": {
"id": "SUCCESS_SAVE_DATA",
"message": "Answers successfully saved !",
"messageEn": null,
"messageId": null,
"field": null,
"redirect": null
}
}
Modified at 2024-08-05 08:41:41