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": "970a6832-d05e-4e8f-b8c3-3c27d543769e",
        "QuestionSetID": "b9f47317-64ce-4134-a0a6-c7d0d837b009",
        "Question": "sample string 3",
        "DataSetID": "70b1de8d-f345-42c0-a41f-3648c1ae709b",
        "RespondentID": "9f5dbaca-024c-4e7a-8283-71831a5c7f44",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-08-30T05:04:17.113521+00:00",
        "DateModified": "2025-08-30T05:04:17.113521+00:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "970a6832-d05e-4e8f-b8c3-3c27d543769e",
        "QuestionSetID": "b9f47317-64ce-4134-a0a6-c7d0d837b009",
        "Question": "sample string 3",
        "DataSetID": "70b1de8d-f345-42c0-a41f-3648c1ae709b",
        "RespondentID": "9f5dbaca-024c-4e7a-8283-71831a5c7f44",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-08-30T05:04:17.113521+00:00",
        "DateModified": "2025-08-30T05:04:17.113521+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>970a6832-d05e-4e8f-b8c3-3c27d543769e</ID>
        <QuestionSetID>b9f47317-64ce-4134-a0a6-c7d0d837b009</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>70b1de8d-f345-42c0-a41f-3648c1ae709b</DataSetID>
        <RespondentID>9f5dbaca-024c-4e7a-8283-71831a5c7f44</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-08-30T05:04:17.113521+00:00</DateInsert>
        <DateModified>2025-08-30T05:04:17.113521+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>970a6832-d05e-4e8f-b8c3-3c27d543769e</ID>
        <QuestionSetID>b9f47317-64ce-4134-a0a6-c7d0d837b009</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>70b1de8d-f345-42c0-a41f-3648c1ae709b</DataSetID>
        <RespondentID>9f5dbaca-024c-4e7a-8283-71831a5c7f44</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-08-30T05:04:17.113521+00:00</DateInsert>
        <DateModified>2025-08-30T05:04:17.113521+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>