/
Update Survey Level DQ Setting via PATCH
Update Survey Level DQ Setting via PATCH
To enable the data quality battery at the survey level, you can utilize this patch request.
Request
PATCH $apihost/$basepath/surveys/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)
Body:
[ { "op": "replace", "path": "/is_dq_enable", "value": true} ] |
Response
Response Code
200
Response Body
{
"survey_title": "Sample Survey for Age Income Gender bapit-2",
"survey_category_code": 231,
"completes_required": 1000,
"live_url": "https://my.survey.com?survey_id=1234",
"test_url": "https://my.survey.com?survey_id=1234&test=1",
"field_time": 10,
"offer_price": 3.25,
"ps_survey_status": 22,
"expected_loi": 60,
"expected_ir": 60,
"ps_survey_id": 7654,
"mod_on": 1490012784439,
"is_dq_enable": true,
"crtd_on": 1490011568138,
"test_ps_survey_entry_link": "http://dev.spectrumsurveys.com:3500/startsurvey?survey_id=3429&ps_redirect_test=1&bsec=a70mx8&supplier_id=23",
"survey_localization": "en_US",
"qualifications": [
{
"condition_codes": [
"111",
"112"
],
"qualification_code": 211
},
{
"qualification_code": 212,
"range_sets": [
{
"from": 21,
"to": 29,
"units": 311
},
{
"from": 40,
"to": 59,
"units": 311
}
]
},
{
"qualification_code": 213,
"range_sets": [
{
"from": 50000,
"to": 100000,
"units": 321
}
]
}
],
"quotas": [
{
"buyer_quota_id": "qb12",
"ps_quota_id": "ac03018d-0df5-4bed-bf7f-857446ae2f74",
"required_count": 400,
"criteria": [
{
"qualification_code": 211,
"condition_codes": [
"111"
]
}
]
},
{
"buyer_quota_id": "qb13",
"ps_quota_id": "e28bb72b-f4db-4f2c-9395-e2e1c9ea5fe9",
"required_count": 600,
"criteria": [
{
"qualification_code": 211,
"condition_codes": [
"112"
]
}
]
},
{
"buyer_quota_id": "qb14",
"ps_quota_id": "3db1e7a2-f09d-43c5-98ef-fd4d1d4d1538",
"required_count": 200,
"criteria": [
{
"qualification_code": 212,
"range_sets": [
{
"from": "21",
"to": "25",
"units": 311
}
]
}
]
},
{
"buyer_quota_id": "qb15",
"ps_quota_id": "09ac6704-af70-4cf6-b8ca-639061cca0b7",
"required_count": 300,
"criteria": [
{
"qualification_code": 212,
"range_sets": [
{
"from": "26",
"to": "29",
"units": 311
}
]
}
]
},
{
"buyer_quota_id": "qb16",
"ps_quota_id": "afd60549-4333-4136-ac27-b0da95f2f84e",
"required_count": 500,
"criteria": [
{
"qualification_code": 212,
"range_sets": [
{
"from": "40",
"to": "59",
"units": 311
}
]
}
]
}
]
} |
, multiple selections available,
Related content
Request and Response parameters
Request and Response parameters
Read with this
Update completes required via PATCH
Update completes required via PATCH
More like this
Retrieving a Specific Survey
Retrieving a Specific Survey
Read with this
Change Survey Status
Change Survey Status
More like this
Survey with no qualifications or quotas
Survey with no qualifications or quotas
More like this