Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
PUT $apihost/$basepath/surveys/5000<survey_id>

($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: 

Code Block
languagejs
{
   
        "survey_title": "Sample Survey to enable FEOT",
      "survey_category_code": 232,
      "completes_required": 100,
      "field_time": 10,
      "expected_loi": 10,
      "expected_ir": 60,
      "survey_localization": "en_US",
      "offer_price": 0.01,   
       "is_feot_enabled": true, // enter "false" if FEOT needs to be disabled
    "feot": {
            "pacing": "days",
            "interval": 1,
            "is_custom": true
      },
      "survey_grouping": [
            1021418, //surveys to be grouped are to be added here 
            1021420,
            1053096
      ]
    
 
}

 

Response

...

Response Code

200

Response Body

Code Block
languagejs
{
    "qbp": {
        "enable": false
    },
    "qlc": {
        "enable": false,
        "multiple_quotas": {
            "enable": false,
            "count_by_quota": false,
            "compensate_by_quota": false
        }
    },
    "soft_launch": {
        "enable": false
    },
    "unique_links": {
        "enable": false
    },
    "click_balancing": 0,
    "estimated_clicks": 0,
    "survey_external_id": "",
    "ps_survey_status": 11,
    "offer_price": 0.01,
    "incl_excl": 0,
    "quota_throttling": false,
    "url_transform": false,
    "subscriber_emails": [
        "service-operator@purespectrum.com"
    ],
    "survey_title": "test",
    "survey_category_code": 232,
    "completes_required": 100,
    "field_time": 10,
    "buyer_message": null,
    "is_modular_survey": false,
    "live_url": null,
    "billing_id": "PS1021420",
    "test_url": null,
    "expected_loi": 10,
    "expected_ir": 60,
    "ps_survey_id": 1021420,
    "buyer_surveygroup_ref": null,
    "buyer_surveygroup_refs": [],
    "survey_localization": "en_US",
    "uniqueLinks": false,
    "quotas": [],
    "qualifications": [],
    "is_feot_enabled": true,
    "feot": {
        "is_custom": true,
        "pacing": "days",
        "interval": 1
    },
    "survey_grouping": [
        1021418,
        1021420,
        1053096
    ],
    "blend_id": "",
    "schedule_launch": {
        "enable": false,
        "info": {}
    },
    "price_reco": false,
    "project_creation_date": "2024-09-27T14:29:08.722Z",
    "project_last_complete_date": null,
    "is_dq_enable": false,
    "mc_count": 0,
    "tc_count": 0,
    "basic_token": {
        "enable": false,
        "value": null
    },
    "is_pure_price_rate_card_enable": true,
    "dq_settings": {
        "purescore_filter_enabled": true,
        "fp_device_check": true,
        "fp_fraud_check": true
    },
    "product": "",
    "pds_ignore_override": false
}

...