POST api/UserQuestionAnswer

Request Information

URI Parameters

None.

Body Parameters

AddQuestion
NameDescriptionTypeAdditional information
cGroupID

integer

None.

cActivityID

integer

None.

cName

string

None.

cCompanyPhone

string

None.

cCellPhone

string

None.

cEmail

string

None.

cCompanyName

string

None.

cRegistrationNumber

string

None.

cJobTitle

string

None.

cTopics

Collection of TopicModel

None.

cMustTopic

Collection of TopicID

None.

Request Formats

application/json, text/json

Sample:
{
  "cGroupID": 1,
  "cActivityID": 2,
  "cName": "sample string 3",
  "cCompanyPhone": "sample string 4",
  "cCellPhone": "sample string 5",
  "cEmail": "sample string 6",
  "cCompanyName": "sample string 7",
  "cRegistrationNumber": "sample string 8",
  "cJobTitle": "sample string 9",
  "cTopics": [
    {
      "cTopicID": 1,
      "cTopicName": "sample string 2",
      "cTopicOption": "sample string 3",
      "cTopicType": 4,
      "cTopicStatus": 5,
      "cTopicAnswer": "sample string 6"
    },
    {
      "cTopicID": 1,
      "cTopicName": "sample string 2",
      "cTopicOption": "sample string 3",
      "cTopicType": 4,
      "cTopicStatus": 5,
      "cTopicAnswer": "sample string 6"
    }
  ],
  "cMustTopic": [
    {
      "cTopicID": 1
    },
    {
      "cTopicID": 1
    }
  ]
}

text/xml

Sample:
<AddQuestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessUsApi.Models">
  <cActivityID>2</cActivityID>
  <cCellPhone>sample string 5</cCellPhone>
  <cCompanyName>sample string 7</cCompanyName>
  <cCompanyPhone>sample string 4</cCompanyPhone>
  <cEmail>sample string 6</cEmail>
  <cGroupID>1</cGroupID>
  <cJobTitle>sample string 9</cJobTitle>
  <cMustTopic>
    <TopicID>
      <cTopicID>1</cTopicID>
    </TopicID>
    <TopicID>
      <cTopicID>1</cTopicID>
    </TopicID>
  </cMustTopic>
  <cName>sample string 3</cName>
  <cRegistrationNumber>sample string 8</cRegistrationNumber>
  <cTopics>
    <TopicModel>
      <cTopicAnswer>sample string 6</cTopicAnswer>
      <cTopicID>1</cTopicID>
      <cTopicName>sample string 2</cTopicName>
      <cTopicOption>sample string 3</cTopicOption>
      <cTopicStatus>5</cTopicStatus>
      <cTopicType>4</cTopicType>
    </TopicModel>
    <TopicModel>
      <cTopicAnswer>sample string 6</cTopicAnswer>
      <cTopicID>1</cTopicID>
      <cTopicName>sample string 2</cTopicName>
      <cTopicOption>sample string 3</cTopicOption>
      <cTopicStatus>5</cTopicStatus>
      <cTopicType>4</cTopicType>
    </TopicModel>
  </cTopics>
</AddQuestion>

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 'AddQuestion'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.