Skip to content
Richard Thombs edited this page Dec 21, 2016 · 15 revisions
  1. Get a Questionnaire's Design
  2. Update a Questionnaire's Design

Hint: Before attempting to use this API to modify Questionnaires, make sure you are familiar with how the TeamHaven Questionnaire Designer works.

Get a Questionnaire's Design

GET /api/projects/:pid/questionnaires/:id

Retrieves the Questionnaire Design of a specific Questionnaire.

Response

The response body is the JSON representation of the Questionnaire Design.

Update a Questionnaire's Design

PUT /api/projects/:pid/questionnaires/:id

Response

The response body is the JSON representation of the updated Questionnaire Design.

This will differ from what was sent in the following ways:

  1. FormIDs, QuestionIDs, ChoiceIDs and ItemIDs will be assigned to those elements that didn't already have them.
  2. If a significant change was made to the design of the Questionnaire, then the QuestionnaireID and Version number will be updated.

Note: If the QuestionnaireID has changed, then make sure you use this new value in future API calls.

Clone this wiki locally