POST v1/QuestionMultipleChoiceSingleSelects

Creates a QuestionMultipleChoiceSingleSelect

Request Information

URI Parameters

None.

Body Parameters

An object representing the QuestionMultipleChoiceSingleSelect.

QuestionMultipleChoiceSingleSelect
NameDescriptionTypeAdditional information
Id

string

None.

Html

string

None.

RandomizeAnswers

boolean

None.

AnswersToShow

integer

None.

AnswerSelectSetId

string

None.

CorrectAnswerId

string

None.

CorrectEnteredAnswerText

string

None.

IsGraded

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Html": "sample string 2",
  "RandomizeAnswers": true,
  "AnswersToShow": 4,
  "AnswerSelectSetId": "sample string 5",
  "CorrectAnswerId": "sample string 6",
  "CorrectEnteredAnswerText": "sample string 7",
  "IsGraded": true
}

text/html

Sample:
{"Id":"sample string 1","Html":"sample string 2","RandomizeAnswers":true,"AnswersToShow":4,"AnswerSelectSetId":"sample string 5","CorrectAnswerId":"sample string 6","CorrectEnteredAnswerText":"sample string 7","IsGraded":true}

application/xml, text/xml

Sample:
<QuestionMultipleChoiceSingleSelect xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
  <AnswerSelectSetId>sample string 5</AnswerSelectSetId>
  <AnswersToShow>4</AnswersToShow>
  <CorrectAnswerId>sample string 6</CorrectAnswerId>
  <CorrectEnteredAnswerText>sample string 7</CorrectEnteredAnswerText>
  <Html>sample string 2</Html>
  <Id>sample string 1</Id>
  <IsGraded>true</IsGraded>
  <RandomizeAnswers>true</RandomizeAnswers>
</QuestionMultipleChoiceSingleSelect>

Response Information

Resource Description

A response containing the new QuestionMultipleChoiceSingleSelect's unique id, or validation errors if the QuestionMultipleChoiceSingleSelect could not be created.

QuestionMultipleChoiceSingleSelectPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 201 Created: QuestionMultipleChoiceSingleSelect successfully created.
  • 400 BadRequest: Data validation failed, see the response body for more information.
  • 401 Unauthorized:
  • 500 InternalServerError:

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1"
}

text/html

Sample:
{"Id":"sample string 1"}

application/xml, text/xml

Sample:
<QuestionMultipleChoiceSingleSelectPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Responses">
  <Id>sample string 1</Id>
</QuestionMultipleChoiceSingleSelectPostResponse>