Apply Multiple Survey Group to a Project
Apply the Survey group to an existing project. Use the Edit survey API explained here Edit Survey Quotas and add the parameter below to the payload:
"buyer_surveygroup_refs":["cosmetics_project_1191", "cosmetics_project_1192"]
Request (POST)
POST $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:
{
"live_url": "http://b_emulator.purespectrum.net:3000/emulated_surveyss",
"test_url": "http://b_emulator.purespectrum.net:3000/emulated_surveyss",
"survey_title": "QBP API child2",
"survey_category_code": 231,
"survey_localization": "en_US",
"completes_required": 100,
"expected_ir": 10,
"expected_loi": 10,
"offer_price": 10,
"field_time": 99,
"buyer_surveygroup_ref": "cosmetics_project_1191"
"buyer_surveygroup_refs": ["cosmetics_project_1191", "cosmetics_project_1192"]
}
Response
Response Code
200
Response Body
{
"ps_api_response_code": 1000,
"ps_api_response_message": "Purespectrum Custom API Response Message"
}
Request (PUT)
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:
{
"live_url": "http://b_emulator.purespectrum.net:3000/emulated_surveyss",
"test_url": "http://b_emulator.purespectrum.net:3000/emulated_surveyss",
"survey_title": "QBP API child2",
"survey_category_code": 231,
"survey_localization": "en_US",
"completes_required": 100,
"expected_ir": 10,
"expected_loi": 10,
"offer_price": 10,
"field_time": 99,
"buyer_surveygroup_refs": ["cosmetics_project_1191", "cosmetics_project_1192"]
}
Response
Response Code
200
Response Body
{
"ps_api_response_code": 1000,
"ps_api_response_message": "Purespectrum Custom API Response Message"
}
, multiple selections available,
Related content
Apply Survey Group to a Project
Apply Survey Group to a Project
More like this
Edit an existing survey group
Edit an existing survey group
More like this
Connecting to the API
Connecting to the API
Read with this
Remove Single or Multiple Survey Group to a Project
Remove Single or Multiple Survey Group to a Project
More like this
Create Survey Using the Decipher API Integration
Create Survey Using the Decipher API Integration
More like this