Versions Compared

Key

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

For a survey id 217, I want to prevent respondents how have participated in survey 214, 215, and 216 from entering this survey. This is done by creating a private survey group for 217 and adding 214, 215, and 216. Since this is a private survey group, surveys 214, 215, and 216 will not be affected. A respondent who participated in 215 will not be prevented from participating in 216. This group is applicable only for respondents trying to enter 217.

Request

...

POST $apihost/$basepath/surveygroups

($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
languagejs
{
  "buyer_surveygroup_ref": "my_group1",
  "name": "My First Group",
  "surveys_in_group": [3437,3438,3439]
}

Response


...

Response Code

201

Response Body