Skip to main content

Arguments

questionnaireSlug : String! required

The questionnaire slug to return questions and answers for.

targetId : ID! required

The account number for account-targeted questionnaires, or the property ID for property-targeted questionnaires.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can query questionnaire answers

Query Complexity

3

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query GetQuestionsWithAnswersForQuestionnaire( $questionnaireSlug: String!, $targetId: ID! ) { getQuestionsWithAnswersForQuestionnaire( questionnaireSlug: $questionnaireSlug, targetId: $targetId ) { answer answerType deprecated mandatory possibleAnswers question slug } }

Variables

{ "questionnaireSlug": "again-study-news-politics-control", "targetId": "49780845" }

Response

{ "data": { "getQuestionsWithAnswersForQuestionnaire": [ { "answer": "building-four-return-represent-view", "answerType": "TEXT", "deprecated": true, "mandatory": true, "possibleAnswers": "instead-stop-prove-field-onto", "question": "think-suffer-measure-open-alone", "slug": "drug-something-increase-common-nature" } ] } }