Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »


Create Survey



Zipcode qualification code is 229

(testcase id: bapit-4)

Request


POST $apihost/$basepath/surveys

($apihost is the environment against which you are testing, and $basepath is the base path with the api version. All Buy API calls will require access-token parameter in the header) 

Parameters: 

Body: 

{
  "survey_title": "US Zipcode bapit-4",
  "survey_category_code": 231,
  "survey_localization": "en_US",
  "completes_required": 1000,
  "expected_ir": 60,
  "expected_loi": 60,
  "live_url": "https://my.survey.com?survey_id=1234",
  "test_url": "https://my.survey.com?survey_id=1234&test=1",
  "field_time": 10,
  "qualifications": [
    {
      "qualification_code": 229,
      "condition_codes": [
        "90210", "90025", "03070"
      ]
    }
  ]
}

Result 


Response Code

201

Response Body

{
  "ps_survey_id": 7655,
  "live_ps_survey_entry_link": "http://www.spectrumsurveys.com/7655",
  "test_ps_survey_entry_link": "http://www.spectrumsurveys.com/7655t",
  "ps_survey_status": 11,
  "survey_title": "Automobile Preferences",
  "survey_category_code": 231,
  "survey_localization": "en_US",
  "completes_required": 1000,
  "ps_incidence": 60,
  "length_of_interview": 60,
  "live_url": "https://my.survey.com?survey_id=1234",
  "test_url": "https://my.survey.com?survey_id=1234&test=1",
  "field_time": 10,
  "qualifications": [
    {
      "qualification_code": 229,//states
      "conditions": [
        "90210", "90025", "03070"
      ]
    }
  ]
}

Notes



  • Supporting notes
  • No labels