POST Brands/{brandID}/QuestionSets

Allows the caller to create a new QuestionSet for a given brand.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

Brand ID

integer

Required

Body Parameters

Model contains QuestionSetID, IsRegistration and SequenceNumber

InputBrandQuestionSetModel
NameDescriptionTypeAdditional information
QuestionSetID

integer

Required

IsPostRegistration

boolean

None.

IsRegistration

boolean

Required

NumberOfDaysToReDisplay

integer

None.

NeverReDisplay

boolean

None.

Tag

string

String length: inclusive between 0 and 56

Request Formats

application/json, text/json

Sample:
{
  "QuestionSetID": 1,
  "IsPostRegistration": true,
  "IsRegistration": true,
  "NumberOfDaysToReDisplay": 1,
  "NeverReDisplay": true,
  "Tag": "sample string 5"
}

text/html

Sample:
{"QuestionSetID":1,"IsPostRegistration":true,"IsRegistration":true,"NumberOfDaysToReDisplay":1,"NeverReDisplay":true,"Tag":"sample string 5"}

application/xml, text/xml

Sample:
<InputBrandQuestionSetModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.QuestionSet">
  <IsPostRegistration>true</IsPostRegistration>
  <IsRegistration>true</IsRegistration>
  <NeverReDisplay>true</NeverReDisplay>
  <NumberOfDaysToReDisplay>1</NumberOfDaysToReDisplay>
  <QuestionSetID>1</QuestionSetID>
  <Tag>sample string 5</Tag>
</InputBrandQuestionSetModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InputBrandQuestionSetModel'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

BrandStoreResult

BrandQuestionSetModel
NameDescriptionTypeAdditional information
IsPostRegistration

boolean

None.

IsActive

boolean

None.

SequenceNumber

integer

Required

BrandQuestionSetID

integer

Required

PostRegistrationSequenceNumber

integer

None.

QuestionSetID

integer

Required

IsRegistration

boolean

Required

NumberOfDaysToReDisplay

integer

None.

NeverReDisplay

boolean

None.

Tag

string

String length: inclusive between 0 and 56

Response Formats

application/json, text/json

Sample:
{
  "IsPostRegistration": true,
  "IsActive": true,
  "SequenceNumber": 3,
  "BrandQuestionSetID": 4,
  "PostRegistrationSequenceNumber": 1,
  "QuestionSetID": 5,
  "IsRegistration": true,
  "NumberOfDaysToReDisplay": 1,
  "NeverReDisplay": true,
  "Tag": "sample string 8"
}

text/html

Sample:
{"IsPostRegistration":true,"IsActive":true,"SequenceNumber":3,"BrandQuestionSetID":4,"PostRegistrationSequenceNumber":1,"QuestionSetID":5,"IsRegistration":true,"NumberOfDaysToReDisplay":1,"NeverReDisplay":true,"Tag":"sample string 8"}

application/xml, text/xml

Sample:
<BrandQuestionSetModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.QuestionSet">
  <IsPostRegistration>false</IsPostRegistration>
  <IsRegistration>true</IsRegistration>
  <NeverReDisplay>true</NeverReDisplay>
  <NumberOfDaysToReDisplay>1</NumberOfDaysToReDisplay>
  <QuestionSetID>5</QuestionSetID>
  <Tag>sample string 8</Tag>
  <BrandQuestionSetID>4</BrandQuestionSetID>
  <IsActive>true</IsActive>
  <IsPostRegistration>true</IsPostRegistration>
  <PostRegistrationSequenceNumber>1</PostRegistrationSequenceNumber>
  <SequenceNumber>3</SequenceNumber>
</BrandQuestionSetModel>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.