-
-
Notifications
You must be signed in to change notification settings - Fork 2
Survey API
suryayadavalli edited this page Dec 19, 2017
·
2 revisions
A question group is nothing but a category for a set up questions. You can have 100 questions however, all of these questions could be categorized into four groups (personal, finacial, work etc.).
- POST / GET : /questiongroups
- GET / UPDATE / DELETE (key records): /questiongroups/{questiongroupid}
Once the quesiton group is created you can add questions to the group. Each question can have a title / text / definition (JSON), pick list values (stored as a stringfied JSON) and other elements, including visibility , category and sub-category
- POST /v2/questiongroups/{questiongroupid}/questions
- GET /v2/questiongroups/{questiongroupid}/questions
- GET / UPDATE / DELETE (key records): /v2/questiongroups/{questiongroupid}/questions/{questionid}
A JSON document containing the entire defintion of the survey including the sections / questions etc.
- POST: /v2/surveys
- GET / UPDATE / DELETE (key records): /v2/surveys/{surveyid}
Although entire survey definition is stored as a document , survey sections need to be created in HSLynk to be able to POST scores for the clients against these sections
- POST: /surveys/{surveyid}/surveysections
- GET / UPDATE / DELETE (key records): /surveys/{surveyid}/surveysections/{sectionid}