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": "553ff27b-70d4-4a86-b588-591fb89a3357",
        "QuestionSetID": "e88e151d-579b-4b3e-ba7f-117f3172a900",
        "Question": "sample string 3",
        "DataSetID": "008e567b-880a-4179-b817-f0fe3a398758",
        "RespondentID": "caa96b72-05a1-4a03-baf7-fa94f431656e",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2018-10-23T02:46:11.417112+01:00",
        "DateModified": "2018-10-23T02:46:11.417112+01:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "553ff27b-70d4-4a86-b588-591fb89a3357",
        "QuestionSetID": "e88e151d-579b-4b3e-ba7f-117f3172a900",
        "Question": "sample string 3",
        "DataSetID": "008e567b-880a-4179-b817-f0fe3a398758",
        "RespondentID": "caa96b72-05a1-4a03-baf7-fa94f431656e",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2018-10-23T02:46:11.417112+01:00",
        "DateModified": "2018-10-23T02:46:11.417112+01: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>553ff27b-70d4-4a86-b588-591fb89a3357</ID>
        <QuestionSetID>e88e151d-579b-4b3e-ba7f-117f3172a900</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>008e567b-880a-4179-b817-f0fe3a398758</DataSetID>
        <RespondentID>caa96b72-05a1-4a03-baf7-fa94f431656e</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2018-10-23T02:46:11.417112+01:00</DateInsert>
        <DateModified>2018-10-23T02:46:11.417112+01:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>553ff27b-70d4-4a86-b588-591fb89a3357</ID>
        <QuestionSetID>e88e151d-579b-4b3e-ba7f-117f3172a900</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>008e567b-880a-4179-b817-f0fe3a398758</DataSetID>
        <RespondentID>caa96b72-05a1-4a03-baf7-fa94f431656e</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2018-10-23T02:46:11.417112+01:00</DateInsert>
        <DateModified>2018-10-23T02:46:11.417112+01:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>