Add device qualification to a survey

Add device qualification to a survey

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! 🎉

 

Add a device qualification to the survey created in this example Survey with no qualifications or quotas. Allow only desktop entries (code = 111, device qualification code = 219)

bapit-8

Request


POST $apihost/$basepath/surveys/7654/qualifications

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

{ "qualification_code": 219, "condition_codes": ["111"] }



Response


Response Code

201

Response Body

{ "qualification_code": 219, "condition_codes": [ "111" ] }