GET api/v1/teamdata/questionsets/{id}

This method gets the questions set of a team data. The method returns the number of questions that are in that data set. The question set id can be retrieved in the following method in the TeamData Api: "GET api/v1/teamdata/datasets/{id}".

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The unique id of the question set.

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

TwoSms.CustomerPortalRole.API.Misc.ResponseOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.TeamData.QuestionSet
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfSystem.Collections.Generic.ListOfTwoSms.CustomerPortalRole.API.TeamData.QuestionSet

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": [
      {
        "ID": "0aa9c6e5-f8f1-48c5-88af-b9252c5c2d0c",
        "TeamDataSetID": "b428bc99-3458-4334-bb50-1d93a2e55616",
        "Question": "sample string 3",
        "Type": 4,
        "DateInsert": "2018-12-17T03:43:20.2529847+00:00",
        "DateModified": "2018-12-17T03:43:20.2529847+00:00",
        "DateStart": "2018-12-17T03:43:20.2529847+00:00",
        "DateEnd": "2018-12-17T03:43:20.2529847+00:00",
        "Enabled": true
      },
      {
        "ID": "0aa9c6e5-f8f1-48c5-88af-b9252c5c2d0c",
        "TeamDataSetID": "b428bc99-3458-4334-bb50-1d93a2e55616",
        "Question": "sample string 3",
        "Type": 4,
        "DateInsert": "2018-12-17T03:43:20.2529847+00:00",
        "DateModified": "2018-12-17T03:43:20.2529847+00:00",
        "DateStart": "2018-12-17T03:43:20.2529847+00:00",
        "DateEnd": "2018-12-17T03:43:20.2529847+00:00",
        "Enabled": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfListOfQuestionSet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <QuestionSet>
        <ID>0aa9c6e5-f8f1-48c5-88af-b9252c5c2d0c</ID>
        <TeamDataSetID>b428bc99-3458-4334-bb50-1d93a2e55616</TeamDataSetID>
        <Question>sample string 3</Question>
        <Type>4</Type>
        <DateInsert>2018-12-17T03:43:20.2529847+00:00</DateInsert>
        <DateModified>2018-12-17T03:43:20.2529847+00:00</DateModified>
        <DateStart>2018-12-17T03:43:20.2529847+00:00</DateStart>
        <DateEnd>2018-12-17T03:43:20.2529847+00:00</DateEnd>
        <Enabled>true</Enabled>
      </QuestionSet>
      <QuestionSet>
        <ID>0aa9c6e5-f8f1-48c5-88af-b9252c5c2d0c</ID>
        <TeamDataSetID>b428bc99-3458-4334-bb50-1d93a2e55616</TeamDataSetID>
        <Question>sample string 3</Question>
        <Type>4</Type>
        <DateInsert>2018-12-17T03:43:20.2529847+00:00</DateInsert>
        <DateModified>2018-12-17T03:43:20.2529847+00:00</DateModified>
        <DateStart>2018-12-17T03:43:20.2529847+00:00</DateStart>
        <DateEnd>2018-12-17T03:43:20.2529847+00:00</DateEnd>
        <Enabled>true</Enabled>
      </QuestionSet>
    </Detail>
  </ResponseData>
</ResponseOfListOfQuestionSet>