Apply Survey Group to a Project

Apply the Survey group to an existing project. Use the Edit survey API explained here https://purespectrum.atlassian.net/wiki/spaces/PBA/pages/33506458 and add the parameter below to the payload:

1 "buyer_surveygroup_ref": "cosmetics_project_1189"

Request


1 PUT $apihost/$basepath/surveys/5000/

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

1 2 3 4 5 6 7 8 9 10 11 12 13 { "survey_title": "Sample Survey for Age Income Gender bapit-2", "survey_category_code": 231, "survey_localization": "en_US", "completes_required": 1000, "expected_ir": 60, "expected_loi": 60, "offer_price": 4.5, "live_url": "https://my.survey.com?survey_id=1234", "test_url": "https://my.survey.com?survey_id=1234&test=1", "field_time": 10, "buyer_surveygroup_ref": "cosmetics_project_1189" }

Response


Response Code

200

Response Body

1 2 3 4 { "ps_api_response_code": 1000, "ps_api_response_message": "Purespectrum Custom API Response Message" }