/surveyQuestions

Changed on

Use this endpoint to retrieve all Survey Questions that are available in the current context.

get/surveyQuestions

Request

  • Base URL
    https://api.securevan.com/v4
  • URL
    https://api.securevan.com/v4/surveyQuestions
  • Auth
    HTTP basic

Query parameters

statusesstring

Comma-delimited list of statuses of Survey Questions. One or more of Active (default), Archived, and Inactive.

namestring

Filters to Survey Questions with names that start with the given input

typestring

Filters to Survey Questions of the given type

questionstring

Filters to Survey Questions with script questions that contain the given input

cycleinteger

A year in the format YYYY; filters to Survey Questions with the given cycle

$topinteger

Response

200

nextPageLinkunknown
countinteger

Example response

{
  "items": [
    {
      "surveyQuestionId": 54945,
      "type": "Candidate",
      "cycle": 2010,
      "name": "John Kerry senate",
      "mediumName": "Kerry",
      "shortName": "Kerr",
      "scriptQuestion": "Will you vote for John Kerry in the upcoming Senate race?",
      "status": "Archived",
      "responses": [
        {
          "surveyResponseId": 245998,
          "name": "1 Strong Kerry",
          "mediumName": "1",
          "shortName": "K"
        }
      ]
    }
  ],
  "count": 1
}

Changes