GET api/v1/teamdata/externalanswersets/{id}/{contactId}

This method will get the external answer sets detail for a given contact id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The external answer set 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": "a586d25c-8591-4185-979b-2c1a2a04d20a",
        "QuestionSetID": "daeb99c6-33ec-469e-b5d7-e87b10511eef",
        "Question": "sample string 3",
        "DataSetID": "931b89ec-c853-4386-978f-e870625ce85e",
        "RespondentID": "1306b994-73d3-4df6-ba60-60c44bb165d8",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2018-12-17T03:42:41.7530796+00:00",
        "DateModified": "2018-12-17T03:42:41.7530796+00:00",
        "ResponseType": "sample string 9"
      },
      {
        "ID": "a586d25c-8591-4185-979b-2c1a2a04d20a",
        "QuestionSetID": "daeb99c6-33ec-469e-b5d7-e87b10511eef",
        "Question": "sample string 3",
        "DataSetID": "931b89ec-c853-4386-978f-e870625ce85e",
        "RespondentID": "1306b994-73d3-4df6-ba60-60c44bb165d8",
        "Name": "sample string 6",
        "Answer": "sample string 7",
        "DateInsert": "2018-12-17T03:42:41.7530796+00:00",
        "DateModified": "2018-12-17T03:42:41.7530796+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>a586d25c-8591-4185-979b-2c1a2a04d20a</ID>
        <QuestionSetID>daeb99c6-33ec-469e-b5d7-e87b10511eef</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>931b89ec-c853-4386-978f-e870625ce85e</DataSetID>
        <RespondentID>1306b994-73d3-4df6-ba60-60c44bb165d8</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2018-12-17T03:42:41.7530796+00:00</DateInsert>
        <DateModified>2018-12-17T03:42:41.7530796+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
      <Answersetdata>
        <ID>a586d25c-8591-4185-979b-2c1a2a04d20a</ID>
        <QuestionSetID>daeb99c6-33ec-469e-b5d7-e87b10511eef</QuestionSetID>
        <Question>sample string 3</Question>
        <DataSetID>931b89ec-c853-4386-978f-e870625ce85e</DataSetID>
        <RespondentID>1306b994-73d3-4df6-ba60-60c44bb165d8</RespondentID>
        <Name>sample string 6</Name>
        <Answer>sample string 7</Answer>
        <DateInsert>2018-12-17T03:42:41.7530796+00:00</DateInsert>
        <DateModified>2018-12-17T03:42:41.7530796+00:00</DateModified>
        <ResponseType>sample string 9</ResponseType>
      </Answersetdata>
    </Detail>
  </ResponseData>
</ResponseOfListOfAnswersetdata>