PUT api/FormQuestions/QuestionAndOptions
Request Information
URI Parameters
None.
Body Parameters
QuestionAndOptionName | Description | Type | Additional information |
---|---|---|---|
Questionid | integer |
None. |
|
FQ | FormQuestion |
None. |
|
OptionsOfQuestion | Collection of PossibleOption |
None. |
Request Formats
application/json, text/json
Sample:
{ "Questionid": 1, "FQ": { "QuestionId": 1, "FormSectionId": 2, "QuestionDesignId": 3, "FormId": 4, "Position": 5, "Title": "sample string 6", "Txt": "sample string 7", "AnswerRequired": true, "MaxChoices": 9, "ImgUrl": "sample string 10", "IsVisible": true, "PublishedDate": "2025-08-14T03:10:25.4226734+00:00", "LastChanged": "2025-08-14T03:10:25.4226734+00:00", "LastChange_AuthorId": 14 }, "OptionsOfQuestion": [ { "OptionId": 1, "QuestionId": 2, "FormId": 3, "Value": "sample string 4", "MinValue": 5.1, "MaxValue": 6.1, "IntervalValue": 7.1, "ImgUrl": "sample string 8", "IsValid": true, "IsFreeAnswer": true, "Position": 11, "IsVisible": true, "LastChanged": "2025-08-14T03:10:25.4226734+00:00", "LastChange_AuthorId": 14 }, { "OptionId": 1, "QuestionId": 2, "FormId": 3, "Value": "sample string 4", "MinValue": 5.1, "MaxValue": 6.1, "IntervalValue": 7.1, "ImgUrl": "sample string 8", "IsValid": true, "IsFreeAnswer": true, "Position": 11, "IsVisible": true, "LastChanged": "2025-08-14T03:10:25.4226734+00:00", "LastChange_AuthorId": 14 } ] }
application/xml, text/xml
Sample:
<QuestionAndOption xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <FQ> <AnswerRequired>true</AnswerRequired> <FormId>4</FormId> <FormSectionId>2</FormSectionId> <ImgUrl>sample string 10</ImgUrl> <IsVisible>true</IsVisible> <LastChange_AuthorId>14</LastChange_AuthorId> <LastChanged>2025-08-14T03:10:25.4226734+00:00</LastChanged> <MaxChoices>9</MaxChoices> <Position>5</Position> <PublishedDate>2025-08-14T03:10:25.4226734+00:00</PublishedDate> <QuestionDesignId>3</QuestionDesignId> <QuestionId>1</QuestionId> <Title>sample string 6</Title> <Txt>sample string 7</Txt> </FQ> <OptionsOfQuestion> <PossibleOption> <FormId>3</FormId> <ImgUrl>sample string 8</ImgUrl> <IntervalValue>7.1</IntervalValue> <IsFreeAnswer>true</IsFreeAnswer> <IsValid>true</IsValid> <IsVisible>true</IsVisible> <LastChange_AuthorId>14</LastChange_AuthorId> <LastChanged>2025-08-14T03:10:25.4226734+00:00</LastChanged> <MaxValue>6.1</MaxValue> <MinValue>5.1</MinValue> <OptionId>1</OptionId> <Position>11</Position> <QuestionId>2</QuestionId> <Value>sample string 4</Value> </PossibleOption> <PossibleOption> <FormId>3</FormId> <ImgUrl>sample string 8</ImgUrl> <IntervalValue>7.1</IntervalValue> <IsFreeAnswer>true</IsFreeAnswer> <IsValid>true</IsValid> <IsVisible>true</IsVisible> <LastChange_AuthorId>14</LastChange_AuthorId> <LastChanged>2025-08-14T03:10:25.4226734+00:00</LastChanged> <MaxValue>6.1</MaxValue> <MinValue>5.1</MinValue> <OptionId>1</OptionId> <Position>11</Position> <QuestionId>2</QuestionId> <Value>sample string 4</Value> </PossibleOption> </OptionsOfQuestion> <Questionid>1</Questionid> </QuestionAndOption>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.