POST api/Questions

Request Information

URI Parameters

None.

Body Parameters

QuestionModel
NameDescriptionTypeAdditional information
QuesKey

integer

None.

TraitLink

integer

None.

TraitClassLink

integer

None.

Pfquestion

string

None.

Question1

string

None.

Request Formats

application/json, text/json

Sample:
{
  "QuesKey": 1,
  "TraitLink": 2,
  "TraitClassLink": 3,
  "Pfquestion": "sample string 4",
  "Question1": "sample string 5"
}

application/xml, text/xml

Sample:
<QuestionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Questions">
  <Pfquestion>sample string 4</Pfquestion>
  <QuesKey>1</QuesKey>
  <Question1>sample string 5</Question1>
  <TraitClassLink>3</TraitClassLink>
  <TraitLink>2</TraitLink>
</QuestionModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'QuestionModel'.

Response Information

Resource Description

QuestionModel
NameDescriptionTypeAdditional information
QuesKey

integer

None.

TraitLink

integer

None.

TraitClassLink

integer

None.

Pfquestion

string

None.

Question1

string

None.

Response Formats

application/json, text/json

Sample:
{
  "QuesKey": 1,
  "TraitLink": 2,
  "TraitClassLink": 3,
  "Pfquestion": "sample string 4",
  "Question1": "sample string 5"
}

application/xml, text/xml

Sample:
<QuestionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Questions">
  <Pfquestion>sample string 4</Pfquestion>
  <QuesKey>1</QuesKey>
  <Question1>sample string 5</Question1>
  <TraitClassLink>3</TraitClassLink>
  <TraitLink>2</TraitLink>
</QuestionModel>