GET v1/take/sections/{id}

Return a Take Section A Take Section contains any number of Questions, Html and other Sections

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

TakeSection
NameDescriptionTypeAdditional information
Id

string

None.

IsGraded

boolean

None.

StartHtml

string

None.

EndHtml

string

None.

Elements

Collection of TakeElement

None.

Response Codes

  • 200 OK: A Section for the Take returned successfully
  • 401 Unauthorized:
  • 500 InternalServerError:

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "IsGraded": true,
  "StartHtml": "sample string 3",
  "EndHtml": "sample string 4",
  "Elements": [
    {
      "ElementId": "sample string 1",
      "ElementType": "sample string 2",
      "DisplayOrder": 3
    },
    {
      "ElementId": "sample string 1",
      "ElementType": "sample string 2",
      "DisplayOrder": 3
    }
  ]
}

text/html

Sample:
{"Id":"sample string 1","IsGraded":true,"StartHtml":"sample string 3","EndHtml":"sample string 4","Elements":[{"ElementId":"sample string 1","ElementType":"sample string 2","DisplayOrder":3},{"ElementId":"sample string 1","ElementType":"sample string 2","DisplayOrder":3}]}

application/xml, text/xml

Sample:
<TakeSection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
  <Elements>
    <TakeElement>
      <DisplayOrder>3</DisplayOrder>
      <ElementId>sample string 1</ElementId>
      <ElementType>sample string 2</ElementType>
    </TakeElement>
    <TakeElement>
      <DisplayOrder>3</DisplayOrder>
      <ElementId>sample string 1</ElementId>
      <ElementType>sample string 2</ElementType>
    </TakeElement>
  </Elements>
  <EndHtml>sample string 4</EndHtml>
  <Id>sample string 1</Id>
  <IsGraded>true</IsGraded>
  <StartHtml>sample string 3</StartHtml>
</TakeSection>