...
($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 | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "survey_title": "Sample Survey for Age Income Gender", "survey_category_code": 231, "survey_localization": "en_US", "completes_required": 1000, "ps_incidence": 60, "length_of_interview": 60, "live_url": "http://www.mybuyer.com/surveys_134", "test_url": "http://www.mybuyer.com/surveys_134t", "field_time": 10, "qualifications": [ { "qualification_code": 211, "conditions": [ "111", "112" ] }, { "qualification_code": 212, "range_sets": [ { "from": 21, "from_units": 111, "to": 29, "to_units": 111 }, { "from": 40, "from_units": 111,//111 is years, 112 is months "to": 59, "to_units": 111 } ] }, { "qualification_code": 213, "range_sets": [ { "from": 50000, "from_units": 321,// 321 is USD "to": 100000, "to_units": 321 } ] } ], "quotas": [ { "buyer_quota_id": "qb12", "required_count": 400, "criteria": [{"qualification_code": 211,"conditions": ["111"]}] }, { "buyer_quota_id": "qb13", "required_count": 600, "criteria": [{"qualification_code": 211,"conditions": ["112"]}] }, { "buyer_quota_id": "qb14", "required_count": 200, "criteria": [{"qualification_code": 212,"range_sets": [{"from": 21,"from_units": 111,"to": 25,"to_units": 111}]}] }, { "buyer_quota_id": "qb15", "required_count": 300, "criteria": [{"qualification_code": 212,"range_sets": [{"from": 26,"from_units": 111,"to": 29,"to_units": 111}]}] }, { "buyer_quota_id": "qb16", "required_count": 500, "criteria": [{"qualification_code": 212,"range_sets": [{"from": 40,"from_units": 111,"to": 59,"to_units": 111}]}] }, { "buyer_quota_id": "qb17", "required_count": 600, "criteria": [{"qualification_code": 213,"range_sets": [{"from": 50000,"from_units": 113,"to": 70000,"to_units": 113}]}] }, { "buyer_quota_id": "qb18", "required_count": 400, "criteria": [{"qualification_code": 213,"range_sets": [{"from": 70001,"from_units": 113,"to": 100000,"to_units": 113}]}] } ] } |
...