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": "05f493d2-aa72-4914-9520-e0e98c422c6b",
        "QuestionSetID": "b7188365-0c39-4c31-80f3-a2b183d130cb",
        "Question": "sample string 3",
        "DataSetID": "9251a443-cdf4-474a-ad8f-dfecf3b70d20",
        "RespondentID": "c30d3635-4df7-4504-b8e1-10ddf0cba288",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2019-05-25T14:42:24.9462457+01:00",
        "DateModified": "2019-05-25T14:42:24.9462457+01:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "05f493d2-aa72-4914-9520-e0e98c422c6b",
        "QuestionSetID": "b7188365-0c39-4c31-80f3-a2b183d130cb",
        "Question": "sample string 3",
        "DataSetID": "9251a443-cdf4-474a-ad8f-dfecf3b70d20",
        "RespondentID": "c30d3635-4df7-4504-b8e1-10ddf0cba288",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2019-05-25T14:42:24.9462457+01:00",
        "DateModified": "2019-05-25T14:42:24.9462457+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>05f493d2-aa72-4914-9520-e0e98c422c6b</ID>
        <QuestionSetID>b7188365-0c39-4c31-80f3-a2b183d130cb</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>9251a443-cdf4-474a-ad8f-dfecf3b70d20</DataSetID>
        <RespondentID>c30d3635-4df7-4504-b8e1-10ddf0cba288</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2019-05-25T14:42:24.9462457+01:00</DateInsert>
        <DateModified>2019-05-25T14:42:24.9462457+01:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>05f493d2-aa72-4914-9520-e0e98c422c6b</ID>
        <QuestionSetID>b7188365-0c39-4c31-80f3-a2b183d130cb</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>9251a443-cdf4-474a-ad8f-dfecf3b70d20</DataSetID>
        <RespondentID>c30d3635-4df7-4504-b8e1-10ddf0cba288</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2019-05-25T14:42:24.9462457+01:00</DateInsert>
        <DateModified>2019-05-25T14:42:24.9462457+01:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>