POST api/v1/teamdata/externalanswersets
This method creates a set of external answers for a team data.
Request Information
URI Parameters
None.
Body Parameters
TeamDataQuestionSetModelName | Description | Type | Additional 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": "cd1adc01-0f76-4862-b72b-70f01f2e8cee", "SenderName": "sample string 4", "DataSetID": "012bd5bd-5762-4936-aff7-1f86d2283f18", "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": "9f629330-a21e-402b-8bea-8cd0d9d65c67", "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": "9f629330-a21e-402b-8bea-8cd0d9d65c67", "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>cd1adc01-0f76-4862-b72b-70f01f2e8cee</TeamDataSetID> <SenderName>sample string 4</SenderName> <DataSetID>012bd5bd-5762-4936-aff7-1f86d2283f18</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>9f629330-a21e-402b-8bea-8cd0d9d65c67</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>9f629330-a21e-402b-8bea-8cd0d9d65c67</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
ResponseOfObjectName | Description | Type | Additional 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>