Get Questionnaire version
To retrieve a questionnaire version the following GET request can be used (available only for ADMIN):
https://pistis-market.eu/srv/intention-analytics/api/questionnaire/:id/:version
The id parameter should be the id of the questionnaire (e.g db469342-d725-4d20-b06d-0ffa6feaeb76), and the version its version (e.g 3).
Server Response
Example of the response containing the retrieved questionnaire version along with its questions:
{
"id": "db469342-d725-4d20-b06d-0ffa6feaeb76",
"version": "4",
"isForVerifiedBuyers": true,
"title": "Questionnaire Title",
"description": "Description Description",
"isActive": false,
"questions": [
{
"id": "2f4b8756-4203-486f-90ee-25dd296d6283",
"type": "Text",
"title": "Question title",
"isRequired": true,
"options": []
},
{
"id": "bc88d655-5684-4645-8c99-aa3e2f81b43e",
"type": "Checkbox",
"title": "Checkbox question",
"isRequired": true,
"options": [
{
"text": "Option 1",
"description": ""
},
{
"text": "Option 2",
"description": ""
}
]
}
]
}
