POST BrandGroups/{brandGroupID}/Questions

Adds QuestionType override to a BrandGroup

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandGroupID

Brand Group ID

integer

Required

Body Parameters

List of BrandQuestionTypeModel to Add

Collection of BrandQuestionTypeModel
NameDescriptionTypeAdditional information
QuestionID

integer

Required

QuestionType

QuestionType

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "QuestionID": 1,
    "QuestionType": 1
  },
  {
    "QuestionID": 1,
    "QuestionType": 1
  }
]

text/html

Sample:
[{"QuestionID":1,"QuestionType":1},{"QuestionID":1,"QuestionType":1}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Enum value 'Behavioral' is invalid for type 'Toluna.TEF.Common.ViewModels.QuestionSets.QuestionType' and cannot be serialized. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Enum value 'Behavioral' is invalid for type 'Toluna.TEF.Common.ViewModels.QuestionSets.QuestionType' and cannot be serialized. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.

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 'List`1'.

application/bson

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

Response Information

Resource Description

List of BrandQuestionSetModel

Collection of BrandQuestionTypeModel
NameDescriptionTypeAdditional information
QuestionID

integer

Required

QuestionType

QuestionType

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "QuestionID": 1,
    "QuestionType": 1
  },
  {
    "QuestionID": 1,
    "QuestionType": 1
  }
]

text/html

Sample:
[{"QuestionID":1,"QuestionType":1},{"QuestionID":1,"QuestionType":1}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Enum value 'Behavioral' is invalid for type 'Toluna.TEF.Common.ViewModels.QuestionSets.QuestionType' and cannot be serialized. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Enum value 'Behavioral' is invalid for type 'Toluna.TEF.Common.ViewModels.QuestionSets.QuestionType' and cannot be serialized. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.

application/bson

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