Skip to content

Survey API

suryayadavalli edited this page Dec 19, 2017 · 2 revisions

STEP 1 : Create question Groups

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}

STEP 2 : Create questions for a question group

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}

STEP 3 : Create a survey

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}

STEP 4 : Create survey sections

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}

Clone this wiki locally