POST api/BOProfile/AddQuestionAnswer

Request Information

URI Parameters

None.

Body Parameters

AddBusinessServiceAnswersModel
NameDescriptionTypeAdditional information
ServiceId

integer

None.

QuestionAnswers

Collection of GetBusinessQnAModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceId": 3,
  "QuestionAnswers": [
    {
      "Questionid": 3,
      "QuestionTxt": "sample string 4",
      "Answerid": 5,
      "AnswerTxt": "sample string 6",
      "PlaceHolderText": "sample string 7"
    },
    {
      "Questionid": 3,
      "QuestionTxt": "sample string 4",
      "Answerid": 5,
      "AnswerTxt": "sample string 6",
      "PlaceHolderText": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<AddBusinessServiceAnswersModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <BusinessId>1</BusinessId>
  <QuestionAnswers>
    <GetBusinessQnAModel>
      <AnswerTxt>sample string 6</AnswerTxt>
      <Answerid>5</Answerid>
      <BusinessId>1</BusinessId>
      <PlaceHolderText>sample string 7</PlaceHolderText>
      <QuestionTxt>sample string 4</QuestionTxt>
      <Questionid>3</Questionid>
      <UserId>2</UserId>
    </GetBusinessQnAModel>
    <GetBusinessQnAModel>
      <AnswerTxt>sample string 6</AnswerTxt>
      <Answerid>5</Answerid>
      <BusinessId>1</BusinessId>
      <PlaceHolderText>sample string 7</PlaceHolderText>
      <QuestionTxt>sample string 4</QuestionTxt>
      <Questionid>3</Questionid>
      <UserId>2</UserId>
    </GetBusinessQnAModel>
  </QuestionAnswers>
  <ServiceId>3</ServiceId>
  <UserId>2</UserId>
</AddBusinessServiceAnswersModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional information
Version

string

None.

dateTime

string

None.

StatusCode

integer

None.

ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "1.0.0",
  "dateTime": "2020/10/22 05:23:19",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
  <StatusCode>1</StatusCode>
</VCAPIResponse>