POST api/Answers

Add a Question

Request Information

URI Parameters

None.

Body Parameters

AnswersDTO
NameDescriptionTypeAdditional information
AnswerId

integer

None.

AppId

integer

None.

QuestionId

integer

None.

YesNo

integer

None.

AnswerText

string

None.

InsertDate

date

None.

InsertBy

integer

None.

UpdateDate

date

None.

UpdateBy

integer

None.

QuestionType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AnswerId": 1,
  "AppId": 2,
  "QuestionId": 3,
  "YesNo": 1,
  "AnswerText": "sample string 4",
  "InsertDate": "2025-04-29T09:34:43.6181537-06:00",
  "InsertBy": 6,
  "UpdateDate": "2025-04-29T09:34:43.6181537-06:00",
  "UpdateBy": 1,
  "QuestionType": "sample string 7"
}

text/html

Sample:
{"AnswerId":1,"AppId":2,"QuestionId":3,"YesNo":1,"AnswerText":"sample string 4","InsertDate":"2025-04-29T09:34:43.6181537-06:00","InsertBy":6,"UpdateDate":"2025-04-29T09:34:43.6181537-06:00","UpdateBy":1,"QuestionType":"sample string 7"}

application/xml, text/xml

Sample:
<AnswersDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._BOL">
  <AnswerId>1</AnswerId>
  <AnswerText>sample string 4</AnswerText>
  <AppId>2</AppId>
  <InsertBy>6</InsertBy>
  <InsertDate>2025-04-29T09:34:43.6181537-06:00</InsertDate>
  <QuestionId>3</QuestionId>
  <QuestionType>sample string 7</QuestionType>
  <UpdateBy>1</UpdateBy>
  <UpdateDate>2025-04-29T09:34:43.6181537-06:00</UpdateDate>
  <YesNo>1</YesNo>
</AnswersDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StatusDTO

StatusDTO
NameDescriptionTypeAdditional information
id

integer

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "msg": "sample string 1"
}

text/html

Sample:
{"id":1,"msg":"sample string 1"}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL">
  <id>1</id>
  <msg>sample string 1</msg>
</StatusDTO>