Update completes required via PATCH

Update completes required via PATCH

Our updated BUY API documentation is available here.
We hope you enjoy the new experience! Reach out to us with your feedback or questions on supportbuyapi@purespectrum.com
Happy programming! 🎉

If you are using the completes_required model, you can update the completes_required using this patch call. 

Request


PATCH $apihost/$basepath/surveys/7654/

($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": "/completes_required", "value": 2000} ]

Response


Response Code

200

Response Body

{ "survey_title": "Sample Survey for Age Income Gender bapit-2", "survey_category_code": 231, "completes_required": 2000, "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, "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 } ] } ] } ] }