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": "d2a06979-c938-433a-90fa-d0e1ddfc8a84",
        "QuestionSetID": "bf0f732d-9d0c-474c-bae9-e8aef5571d9d",
        "Question": "sample string 3",
        "DataSetID": "e1c3f992-2560-43f9-8b52-c72e932f1a02",
        "RespondentID": "a9e2a381-6a53-42d4-8b9b-514468264052",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-11-30T08:22:53.0657322+00:00",
        "DateModified": "2025-11-30T08:22:53.0657322+00:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "d2a06979-c938-433a-90fa-d0e1ddfc8a84",
        "QuestionSetID": "bf0f732d-9d0c-474c-bae9-e8aef5571d9d",
        "Question": "sample string 3",
        "DataSetID": "e1c3f992-2560-43f9-8b52-c72e932f1a02",
        "RespondentID": "a9e2a381-6a53-42d4-8b9b-514468264052",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-11-30T08:22:53.0657322+00:00",
        "DateModified": "2025-11-30T08:22:53.0657322+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>d2a06979-c938-433a-90fa-d0e1ddfc8a84</ID>
        <QuestionSetID>bf0f732d-9d0c-474c-bae9-e8aef5571d9d</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>e1c3f992-2560-43f9-8b52-c72e932f1a02</DataSetID>
        <RespondentID>a9e2a381-6a53-42d4-8b9b-514468264052</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-11-30T08:22:53.0657322+00:00</DateInsert>
        <DateModified>2025-11-30T08:22:53.0657322+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>d2a06979-c938-433a-90fa-d0e1ddfc8a84</ID>
        <QuestionSetID>bf0f732d-9d0c-474c-bae9-e8aef5571d9d</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>e1c3f992-2560-43f9-8b52-c72e932f1a02</DataSetID>
        <RespondentID>a9e2a381-6a53-42d4-8b9b-514468264052</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-11-30T08:22:53.0657322+00:00</DateInsert>
        <DateModified>2025-11-30T08:22:53.0657322+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>