Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

Code Block
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: 

Code Block
languagejslinenumberstrue
{
      "qualification_code": 219,
      "condition_codes": ["111"]
}


Response

...

Response Code

201

Response Body

Code Block
languagejslinenumberstrue
{
  "qualification_code": 219,
  "condition_codes": [
    "111"
  ]
}

...