PUT v1/quizSections/{id}
Creates a new Quiz Section or updates an existing Quiz Section
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique Identifier of the Quiz Section to update or create. |
string |
Required |
Body Parameters
An object representing the Quiz Section.
QuizSection| Name | Description | Type | Additional 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 Quiz Section's unique id, or validation errors if the Quiz Section could not be created or updated.
QuizSectionPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
Response Codes
- 200 OK: Quiz Group 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:
<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>