POST api/Account/UpdateAnsweredQuestion?questionID={questionID}&answer={answer}&surveyID={surveyID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
questionID

globally unique identifier

Required

answer

string

Required

surveyID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of QuestionViewModel
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

QuestionText

string

None.

QuestionTitle

string

None.

ImageFileName

string

None.

DateCreated

date

None.

UserID

globally unique identifier

None.

Answer

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": "ecdafaf2-9668-46ac-afa3-4620c578dc24",
    "QuestionText": "sample string 2",
    "QuestionTitle": "sample string 3",
    "ImageFileName": "sample string 4",
    "DateCreated": "2021-09-10T17:33:25.7237136+00:00",
    "UserID": "701eb548-530d-4b04-9c2a-507b81e0a2f1",
    "Answer": "sample string 7"
  },
  {
    "ID": "ecdafaf2-9668-46ac-afa3-4620c578dc24",
    "QuestionText": "sample string 2",
    "QuestionTitle": "sample string 3",
    "ImageFileName": "sample string 4",
    "DateCreated": "2021-09-10T17:33:25.7237136+00:00",
    "UserID": "701eb548-530d-4b04-9c2a-507b81e0a2f1",
    "Answer": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfQuestionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common">
  <QuestionViewModel>
    <Answer>sample string 7</Answer>
    <DateCreated>2021-09-10T17:33:25.7237136+00:00</DateCreated>
    <ID>ecdafaf2-9668-46ac-afa3-4620c578dc24</ID>
    <ImageFileName>sample string 4</ImageFileName>
    <QuestionText>sample string 2</QuestionText>
    <QuestionTitle>sample string 3</QuestionTitle>
    <UserID>701eb548-530d-4b04-9c2a-507b81e0a2f1</UserID>
  </QuestionViewModel>
  <QuestionViewModel>
    <Answer>sample string 7</Answer>
    <DateCreated>2021-09-10T17:33:25.7237136+00:00</DateCreated>
    <ID>ecdafaf2-9668-46ac-afa3-4620c578dc24</ID>
    <ImageFileName>sample string 4</ImageFileName>
    <QuestionText>sample string 2</QuestionText>
    <QuestionTitle>sample string 3</QuestionTitle>
    <UserID>701eb548-530d-4b04-9c2a-507b81e0a2f1</UserID>
  </QuestionViewModel>
</ArrayOfQuestionViewModel>