GET api/v1/teamdata/answersets/{id}/{contactId}

This method retrieves the answer sets of a data set for a given contact.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The answerset Id.

string

Required

contactId

The id of the contact.

integer

Required

Body Parameters

None.

Response Information

Resource Description

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

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

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

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": "b1405f37-09bb-423a-9133-4d85a4387981",
        "QuestionSetID": "47a25826-423a-4a7c-ac53-c2fc8ecf7fea",
        "Question": "sample string 3",
        "DataSetID": "cba548b4-ac56-49dd-bccb-aa6ce5e09cbd",
        "RespondentID": "6fdaa29d-489d-4dec-8930-92006a758cca",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2021-03-09T02:25:48.9612777+00:00",
        "DateModified": "2021-03-09T02:25:48.9612777+00:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "b1405f37-09bb-423a-9133-4d85a4387981",
        "QuestionSetID": "47a25826-423a-4a7c-ac53-c2fc8ecf7fea",
        "Question": "sample string 3",
        "DataSetID": "cba548b4-ac56-49dd-bccb-aa6ce5e09cbd",
        "RespondentID": "6fdaa29d-489d-4dec-8930-92006a758cca",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2021-03-09T02:25:48.9612777+00:00",
        "DateModified": "2021-03-09T02:25:48.9612777+00:00",
        "ResponseType": "sample string 9"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfListOfAnswersetdata 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>
      <Answersetdata>
        <ID>b1405f37-09bb-423a-9133-4d85a4387981</ID>
        <QuestionSetID>47a25826-423a-4a7c-ac53-c2fc8ecf7fea</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>cba548b4-ac56-49dd-bccb-aa6ce5e09cbd</DataSetID>
        <RespondentID>6fdaa29d-489d-4dec-8930-92006a758cca</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2021-03-09T02:25:48.9612777+00:00</DateInsert>
        <DateModified>2021-03-09T02:25:48.9612777+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>b1405f37-09bb-423a-9133-4d85a4387981</ID>
        <QuestionSetID>47a25826-423a-4a7c-ac53-c2fc8ecf7fea</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>cba548b4-ac56-49dd-bccb-aa6ce5e09cbd</DataSetID>
        <RespondentID>6fdaa29d-489d-4dec-8930-92006a758cca</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2021-03-09T02:25:48.9612777+00:00</DateInsert>
        <DateModified>2021-03-09T02:25:48.9612777+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>