POST api/v1/teamdata/externalanswersets

This method creates a set of external answers for a team data.

Request Information

URI Parameters

None.

Body Parameters

TeamDataQuestionSetModel
NameDescriptionTypeAdditional information
Disclaimer

This the unique Team Data Set ID of the existing external answer set.

string

None.

LogoURL

string

None.

TeamDataSetID

globally unique identifier

Required

SenderName

string

None.

DataSetID

This the unique Data Set ID of the existing external answer set.

globally unique identifier

Required

PersonNumber

This is the Person number/Contact id.

integer

Required

Name

Name of external answer set.

string

Required

YesNo

Selection of list items.

Collection of SelectListItem

Required

Questions

Details about the question set answer.

Collection of TeamDataQuestionSetAnswers

Required

Request Formats

application/json, text/json

Sample:
{
  "Disclaimer": "sample string 1",
  "LogoURL": "sample string 2",
  "TeamDataSetID": "a71cfdc5-b667-43a4-aeee-1edddcece2ef",
  "SenderName": "sample string 4",
  "DataSetID": "256736fc-29ad-48d8-b39f-7717f91f51e0",
  "PersonNumber": 6,
  "Name": "sample string 7",
  "YesNo": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "Questions": [
    {
      "Question": "sample string 1",
      "Answer": "sample string 2",
      "Type": 3,
      "QuestionID": "0e3efaa5-f709-4fe7-ac50-6c249398078b",
      "TeamDataAnswers": [
        {
          "Disabled": true,
          "Group": {
            "Disabled": true,
            "Name": "sample string 2"
          },
          "Selected": true,
          "Text": "sample string 3",
          "Value": "sample string 4"
        },
        {
          "Disabled": true,
          "Group": {
            "Disabled": true,
            "Name": "sample string 2"
          },
          "Selected": true,
          "Text": "sample string 3",
          "Value": "sample string 4"
        }
      ]
    },
    {
      "Question": "sample string 1",
      "Answer": "sample string 2",
      "Type": 3,
      "QuestionID": "0e3efaa5-f709-4fe7-ac50-6c249398078b",
      "TeamDataAnswers": [
        {
          "Disabled": true,
          "Group": {
            "Disabled": true,
            "Name": "sample string 2"
          },
          "Selected": true,
          "Text": "sample string 3",
          "Value": "sample string 4"
        },
        {
          "Disabled": true,
          "Group": {
            "Disabled": true,
            "Name": "sample string 2"
          },
          "Selected": true,
          "Text": "sample string 3",
          "Value": "sample string 4"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<TeamDataQuestionSetModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Disclaimer>sample string 1</Disclaimer>
  <LogoURL>sample string 2</LogoURL>
  <TeamDataSetID>a71cfdc5-b667-43a4-aeee-1edddcece2ef</TeamDataSetID>
  <SenderName>sample string 4</SenderName>
  <DataSetID>256736fc-29ad-48d8-b39f-7717f91f51e0</DataSetID>
  <PersonNumber>6</PersonNumber>
  <Name>sample string 7</Name>
  <YesNo>
    <SelectListItem>
      <Disabled>true</Disabled>
      <Group>
        <Disabled>true</Disabled>
        <Name>sample string 2</Name>
      </Group>
      <Selected>true</Selected>
      <Text>sample string 3</Text>
      <Value>sample string 4</Value>
    </SelectListItem>
    <SelectListItem>
      <Disabled>true</Disabled>
      <Group>
        <Disabled>true</Disabled>
        <Name>sample string 2</Name>
      </Group>
      <Selected>true</Selected>
      <Text>sample string 3</Text>
      <Value>sample string 4</Value>
    </SelectListItem>
  </YesNo>
  <Questions>
    <TeamDataQuestionSetAnswers>
      <Question>sample string 1</Question>
      <Answer>sample string 2</Answer>
      <Type>3</Type>
      <QuestionID>0e3efaa5-f709-4fe7-ac50-6c249398078b</QuestionID>
      <TeamDataAnswers>
        <SelectListItem>
          <Disabled>true</Disabled>
          <Group>
            <Disabled>true</Disabled>
            <Name>sample string 2</Name>
          </Group>
          <Selected>true</Selected>
          <Text>sample string 3</Text>
          <Value>sample string 4</Value>
        </SelectListItem>
        <SelectListItem>
          <Disabled>true</Disabled>
          <Group>
            <Disabled>true</Disabled>
            <Name>sample string 2</Name>
          </Group>
          <Selected>true</Selected>
          <Text>sample string 3</Text>
          <Value>sample string 4</Value>
        </SelectListItem>
      </TeamDataAnswers>
    </TeamDataQuestionSetAnswers>
    <TeamDataQuestionSetAnswers>
      <Question>sample string 1</Question>
      <Answer>sample string 2</Answer>
      <Type>3</Type>
      <QuestionID>0e3efaa5-f709-4fe7-ac50-6c249398078b</QuestionID>
      <TeamDataAnswers>
        <SelectListItem>
          <Disabled>true</Disabled>
          <Group>
            <Disabled>true</Disabled>
            <Name>sample string 2</Name>
          </Group>
          <Selected>true</Selected>
          <Text>sample string 3</Text>
          <Value>sample string 4</Value>
        </SelectListItem>
        <SelectListItem>
          <Disabled>true</Disabled>
          <Group>
            <Disabled>true</Disabled>
            <Name>sample string 2</Name>
          </Group>
          <Selected>true</Selected>
          <Text>sample string 3</Text>
          <Value>sample string 4</Value>
        </SelectListItem>
      </TeamDataAnswers>
    </TeamDataQuestionSetAnswers>
  </Questions>
</TeamDataQuestionSetModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfObject
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfObject

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": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfObject 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 />
  </ResponseData>
</ResponseOfObject>