POST api/questionnaire/DynamicRuleAction
Добавление нового, изменение существующего или получение информации по правилам динамического определения следующего вопроса на основании ответа на предыдущий вопрос
Request Information
URI Parameters
None.
Body Parameters
DynamicRuleActionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ActionType |
Тип действия, которое необходимо произвести (Create, Update или Info) |
string |
None. |
| Active |
Признак активации правила |
boolean |
None. |
| NoActive |
Признак деактивации правила |
boolean |
None. |
| BegDate |
Дата начала действия правила |
date |
None. |
| EndDate |
Дата окончания действия правила |
date |
None. |
| Questionnaire |
Идентификатор опроса |
integer |
None. |
| Question |
Идентификатор вопроса |
integer |
None. |
| Answer |
Идентификатор ответа |
integer |
None. |
| FreeAnswer |
Признак, что на вопрос дали свободный ответ |
boolean |
None. |
| NextQuestion |
Идентификатор следующего вопроса, если правило сработало |
integer |
None. |
| RuleId |
Идентификатор правила (для типов Update и Create) |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"ActionType": "sample string 1",
"Active": true,
"NoActive": true,
"BegDate": "2025-12-25T15:58:10.4017703+03:00",
"EndDate": "2025-12-25T15:58:10.4017703+03:00",
"Questionnaire": 1,
"Question": 1,
"Answer": 1,
"FreeAnswer": true,
"NextQuestion": 1,
"RuleId": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 2"
}
application/xml, text/xml
<DynamicRuleActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.QuestionnaireRequest"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <Active>true</Active> <Answer>1</Answer> <BegDate>2025-12-25T15:58:10.4017703+03:00</BegDate> <EndDate>2025-12-25T15:58:10.4017703+03:00</EndDate> <FreeAnswer>true</FreeAnswer> <NextQuestion>1</NextQuestion> <NoActive>true</NoActive> <Question>1</Question> <Questionnaire>1</Questionnaire> <RuleId>1</RuleId> </DynamicRuleActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
DynamicRuleActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Rule |
Идентификатор созданного правила |
integer |
None. |
| Data |
Данные по правилам |
Collection of DynamicRuleActionData |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"Rule": 1,
"Data": [
{
"Id": 1,
"Questionnaire": 1,
"BegDate": "2025-12-25T15:58:10.620522+03:00",
"EndDate": "2025-12-25T15:58:10.620522+03:00",
"Active": true,
"Question": 1,
"Answer": 1,
"FreeAnswer": true,
"NextQuestion": 1
},
{
"Id": 1,
"Questionnaire": 1,
"BegDate": "2025-12-25T15:58:10.620522+03:00",
"EndDate": "2025-12-25T15:58:10.620522+03:00",
"Active": true,
"Question": 1,
"Answer": 1,
"FreeAnswer": true,
"NextQuestion": 1
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<DynamicRuleActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.QuestionnaireResponse">
<ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
<Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
<Data>
<DynamicRuleActionResponse.DynamicRuleActionData>
<Active>true</Active>
<Answer>1</Answer>
<BegDate>2025-12-25T15:58:10.620522+03:00</BegDate>
<EndDate>2025-12-25T15:58:10.620522+03:00</EndDate>
<FreeAnswer>true</FreeAnswer>
<Id>1</Id>
<NextQuestion>1</NextQuestion>
<Question>1</Question>
<Questionnaire>1</Questionnaire>
</DynamicRuleActionResponse.DynamicRuleActionData>
<DynamicRuleActionResponse.DynamicRuleActionData>
<Active>true</Active>
<Answer>1</Answer>
<BegDate>2025-12-25T15:58:10.620522+03:00</BegDate>
<EndDate>2025-12-25T15:58:10.620522+03:00</EndDate>
<FreeAnswer>true</FreeAnswer>
<Id>1</Id>
<NextQuestion>1</NextQuestion>
<Question>1</Question>
<Questionnaire>1</Questionnaire>
</DynamicRuleActionResponse.DynamicRuleActionData>
</Data>
<Rule>1</Rule>
</DynamicRuleActionResponse>