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": "f6246df3-ce91-454f-b1e2-4e17607e697b",
        "QuestionSetID": "45bcb405-8921-4ec6-8c51-d2c49b226454",
        "Question": "sample string 3",
        "DataSetID": "fa8cc42b-c3a6-4dd9-bcf9-e6ea9b0bfdf5",
        "RespondentID": "eb63a0b9-bfa7-4834-89d5-63f30762ffaf",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-01-18T05:04:29.1058838+00:00",
        "DateModified": "2025-01-18T05:04:29.1058838+00:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "f6246df3-ce91-454f-b1e2-4e17607e697b",
        "QuestionSetID": "45bcb405-8921-4ec6-8c51-d2c49b226454",
        "Question": "sample string 3",
        "DataSetID": "fa8cc42b-c3a6-4dd9-bcf9-e6ea9b0bfdf5",
        "RespondentID": "eb63a0b9-bfa7-4834-89d5-63f30762ffaf",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2025-01-18T05:04:29.1058838+00:00",
        "DateModified": "2025-01-18T05:04:29.1058838+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>f6246df3-ce91-454f-b1e2-4e17607e697b</ID>
        <QuestionSetID>45bcb405-8921-4ec6-8c51-d2c49b226454</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>fa8cc42b-c3a6-4dd9-bcf9-e6ea9b0bfdf5</DataSetID>
        <RespondentID>eb63a0b9-bfa7-4834-89d5-63f30762ffaf</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-01-18T05:04:29.1058838+00:00</DateInsert>
        <DateModified>2025-01-18T05:04:29.1058838+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>f6246df3-ce91-454f-b1e2-4e17607e697b</ID>
        <QuestionSetID>45bcb405-8921-4ec6-8c51-d2c49b226454</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>fa8cc42b-c3a6-4dd9-bcf9-e6ea9b0bfdf5</DataSetID>
        <RespondentID>eb63a0b9-bfa7-4834-89d5-63f30762ffaf</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2025-01-18T05:04:29.1058838+00:00</DateInsert>
        <DateModified>2025-01-18T05:04:29.1058838+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>