PUT v1/quizSections/{id}/quizSectionNodes/{nid}

Creates a new QuizSectionNode in a QuizSection or updates an existing QuizSectionNode in a QuizSection

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the Quiz Section to update or create new Quiz Section Node.

string

Required

nid

Unique Identifier of the Quiz Section Node to update or create.

string

Required

Body Parameters

An object representing the Quiz Section Node.

QuizSectionNode
NameDescriptionTypeAdditional information
Id

string

None.

DisplayOrder

integer

None.

RequiredToDisplay

boolean

None.

QuizElementType

string

None.

QuizElementId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "DisplayOrder": 2,
  "RequiredToDisplay": true,
  "QuizElementType": "sample string 4",
  "QuizElementId": "sample string 5"
}

text/html

Sample:
{"Id":"sample string 1","DisplayOrder":2,"RequiredToDisplay":true,"QuizElementType":"sample string 4","QuizElementId":"sample string 5"}

application/xml, text/xml

Sample:
<QuizSectionNode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
  <DisplayOrder>2</DisplayOrder>
  <Id>sample string 1</Id>
  <QuizElementId>sample string 5</QuizElementId>
  <QuizElementType>sample string 4</QuizElementType>
  <RequiredToDisplay>true</RequiredToDisplay>
</QuizSectionNode>

Response Information

Resource Description

A response containing the new Quiz Section Node's unique id, or validation errors if the Quiz Section Node could not be created or updated.

QuizSectionNodePostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: Quiz Group Node 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:
<QuizSectionNodePostResponse 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>
</QuizSectionNodePostResponse>