PUT v1/QuestionMultipleChoiceSingleSelects/{id}

Creates a new QuestionMultipleChoiceSingleSelect or updates an existing QuestionMultipleChoiceSingleSelect

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the QuestionMultipleChoiceSingleSelect to update or create.

string

Required

Body Parameters

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 quiz group could not be created or updated.

QuestionMultipleChoiceSingleSelectPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: QuestionMultipleChoiceSingleSelect successfully saved.
  • 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>