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": "ca3dc96e-ed9c-4529-ae91-2199486ef983",
  "SenderName": "sample string 4",
  "DataSetID": "0681b840-9f47-4f97-a522-a79c81b7dcd8",
  "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": "ab25ca62-7aaa-4be0-87fc-94883b83aebb",
      "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": "ab25ca62-7aaa-4be0-87fc-94883b83aebb",
      "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>ca3dc96e-ed9c-4529-ae91-2199486ef983</TeamDataSetID>
  <SenderName>sample string 4</SenderName>
  <DataSetID>0681b840-9f47-4f97-a522-a79c81b7dcd8</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>ab25ca62-7aaa-4be0-87fc-94883b83aebb</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>ab25ca62-7aaa-4be0-87fc-94883b83aebb</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>