POST api/FormAnswer/AddMultipleAnswer

Post Multiple Answer at once

Request Information

URI Parameters

None.

Body Parameters

Collection of FormAnswer
NameDescriptionTypeAdditional information
OptionId

integer

None.

EmployesId

integer

None.

QuestionId

integer

None.

Value

string

None.

IsFreeAnswer

boolean

None.

IsNumeric

boolean

None.

IsBool

boolean

None.

IsFile

boolean

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OptionId": 1,
    "EmployesId": 2,
    "QuestionId": 3,
    "Value": "sample string 4",
    "IsFreeAnswer": true,
    "IsNumeric": true,
    "IsBool": true,
    "IsFile": true,
    "LastChanged": "2025-08-14T03:10:28.8784411+00:00",
    "LastChange_AuthorId": 10
  },
  {
    "OptionId": 1,
    "EmployesId": 2,
    "QuestionId": 3,
    "Value": "sample string 4",
    "IsFreeAnswer": true,
    "IsNumeric": true,
    "IsBool": true,
    "IsFile": true,
    "LastChanged": "2025-08-14T03:10:28.8784411+00:00",
    "LastChange_AuthorId": 10
  }
]

application/xml, text/xml

Sample:
<ArrayOfFormAnswer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <FormAnswer>
    <EmployesId>2</EmployesId>
    <IsBool>true</IsBool>
    <IsFile>true</IsFile>
    <IsFreeAnswer>true</IsFreeAnswer>
    <IsNumeric>true</IsNumeric>
    <LastChange_AuthorId>10</LastChange_AuthorId>
    <LastChanged>2025-08-14T03:10:28.8784411+00:00</LastChanged>
    <OptionId>1</OptionId>
    <QuestionId>3</QuestionId>
    <Value>sample string 4</Value>
  </FormAnswer>
  <FormAnswer>
    <EmployesId>2</EmployesId>
    <IsBool>true</IsBool>
    <IsFile>true</IsFile>
    <IsFreeAnswer>true</IsFreeAnswer>
    <IsNumeric>true</IsNumeric>
    <LastChange_AuthorId>10</LastChange_AuthorId>
    <LastChanged>2025-08-14T03:10:28.8784411+00:00</LastChanged>
    <OptionId>1</OptionId>
    <QuestionId>3</QuestionId>
    <Value>sample string 4</Value>
  </FormAnswer>
</ArrayOfFormAnswer>

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 'List`1'.

Response Information

Resource Description

None.