POST api/marketing/ReplaceVariableAction
Добавление, изменение, получение информации о существующих переменных, а также добавление переменных в указанный шаблон
Request Information
URI Parameters
None.
Body Parameters
ReplaceVariableActionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ActionType |
Тип действия (Create, Update, Info) |
string |
None. |
| MessageTemplate |
Идентификатор шаблона, для изменения или получения информации |
integer |
None. |
| MessageTemplateVariable |
Идентификатор записи привязки переменной и шаблона |
integer |
None. |
| ReplaceVariable |
Идентификатор переменной для привязки или изменения |
integer |
None. |
| Active |
Статус активности записи привязки переменной и шаблона |
boolean |
None. |
| NoActive |
Статус неактивности записи привязки переменной и шаблона |
boolean |
None. |
| Name |
Наименование переменной |
string |
None. |
| Value |
Значение переменной |
string |
None. |
| ReplaceVariableType |
Тип переменной |
byte |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"ActionType": "sample string 1",
"MessageTemplate": 1,
"MessageTemplateVariable": 1,
"ReplaceVariable": 1,
"Active": true,
"NoActive": true,
"Name": "sample string 2",
"Value": "sample string 3",
"ReplaceVariableType": 64,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 4"
}
application/xml, text/xml
<ReplaceVariableActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MarketingRequest"> <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 4</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <Active>true</Active> <MessageTemplate>1</MessageTemplate> <MessageTemplateVariable>1</MessageTemplateVariable> <Name>sample string 2</Name> <NoActive>true</NoActive> <ReplaceVariable>1</ReplaceVariable> <ReplaceVariableType>64</ReplaceVariableType> <Value>sample string 3</Value> </ReplaceVariableActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ReplaceVariableActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Data |
Массив данных |
Collection of ReplaceVariableActionDataRow |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"Data": [
{
"Id": 1,
"VariableId": 1,
"Name": "sample string 1",
"Value": "sample string 2",
"ReplaceVariableType": 64
},
{
"Id": 1,
"VariableId": 1,
"Name": "sample string 1",
"Value": "sample string 2",
"ReplaceVariableType": 64
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<ReplaceVariableActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MarketingResponse">
<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>
<ReplaceVariableActionResponse.ReplaceVariableActionDataRow>
<Id>1</Id>
<Name>sample string 1</Name>
<ReplaceVariableType>64</ReplaceVariableType>
<Value>sample string 2</Value>
<VariableId>1</VariableId>
</ReplaceVariableActionResponse.ReplaceVariableActionDataRow>
<ReplaceVariableActionResponse.ReplaceVariableActionDataRow>
<Id>1</Id>
<Name>sample string 1</Name>
<ReplaceVariableType>64</ReplaceVariableType>
<Value>sample string 2</Value>
<VariableId>1</VariableId>
</ReplaceVariableActionResponse.ReplaceVariableActionDataRow>
</Data>
</ReplaceVariableActionResponse>