POST v1/quizSections

Creates a QuizSection

Request Information

URI Parameters

None.

Body Parameters

An object representing the QuizSection.

QuizSection
NameDescriptionTypeAdditional information
Id

string

None.

IsGraded

boolean

None.

StartHtml

string

None.

EndHtml

string

None.

RandomizeItems

boolean

None.

ItemsToShow

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "IsGraded": true,
  "StartHtml": "sample string 3",
  "EndHtml": "sample string 4",
  "RandomizeItems": true,
  "ItemsToShow": 1
}

text/html

Sample:
{"Id":"sample string 1","IsGraded":true,"StartHtml":"sample string 3","EndHtml":"sample string 4","RandomizeItems":true,"ItemsToShow":1}

application/xml, text/xml

Sample:
<QuizSection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
  <EndHtml>sample string 4</EndHtml>
  <Id>sample string 1</Id>
  <IsGraded>true</IsGraded>
  <ItemsToShow>1</ItemsToShow>
  <RandomizeItems>true</RandomizeItems>
  <StartHtml>sample string 3</StartHtml>
</QuizSection>

Response Information

Resource Description

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

QuizSectionPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 201 Created: Quiz Section 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:
<QuizSectionPostResponse 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>
</QuizSectionPostResponse>