POST api/marketing/CommunicationPriorityListItemAction

Создание, изменение, получение информации о наполнении списка приоритетов коммуникаций

Request Information

URI Parameters

None.

Body Parameters

CommunicationPriorityListItemActionRequest
NameDescriptionTypeAdditional information
ActionType

Тип действия, которое необходимо произвести (Create, Update, Info)

string

None.

CommunicationPriorityListItemId

Идентификатор позиции списка для обновления\получения информации

integer

None.

CommunicationPriorityListId

Идентификатор списка

integer

None.

NoActive

Признак активности коммуникации из списка (для Create и Update)

boolean

None.

CommunicationType

Идентификатор типа коммуникации (для Create и Update)

byte

None.

Priority

Номер приоритета коммуникации (для Create и Update)

byte

None.

MessageTemplate

Идентификатор шаблона сообщения (для Create и Update)

integer

None.

Shift

Признак, что равные или большие по номеру активные приоритеты сдвигаются вниз

boolean

None.

Replace

Признак, что вставка идет на текущю позицию с деактивацией активной записи с тем же приоритетом

boolean

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "CommunicationPriorityListItemId": 1,
  "CommunicationPriorityListId": 1,
  "NoActive": true,
  "CommunicationType": 64,
  "Priority": 64,
  "MessageTemplate": 1,
  "Shift": true,
  "Replace": true,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<CommunicationPriorityListItemActionRequest 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 2</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <CommunicationPriorityListId>1</CommunicationPriorityListId>
  <CommunicationPriorityListItemId>1</CommunicationPriorityListItemId>
  <CommunicationType>64</CommunicationType>
  <MessageTemplate>1</MessageTemplate>
  <NoActive>true</NoActive>
  <Priority>64</Priority>
  <Replace>true</Replace>
  <Shift>true</Shift>
</CommunicationPriorityListItemActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommunicationPriorityListItemActionResponse
NameDescriptionTypeAdditional information
CommunicationPriorityListItem

Идентификатор созданной позиции списка

integer

None.

Data

Массив данных

Collection of CommunicationPriorityListItemActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CommunicationPriorityListItem": 1,
  "Data": [
    {
      "Id": 1,
      "Priority": 64,
      "NoActive": true,
      "CommunicationType": 64,
      "CommunicationTypeName": "sample string 1",
      "MessageTemplate": 1,
      "MessageTemplateName": "sample string 2"
    },
    {
      "Id": 1,
      "Priority": 64,
      "NoActive": true,
      "CommunicationType": 64,
      "CommunicationTypeName": "sample string 1",
      "MessageTemplate": 1,
      "MessageTemplateName": "sample string 2"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<CommunicationPriorityListItemActionResponse 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>
  <CommunicationPriorityListItem>1</CommunicationPriorityListItem>
  <Data>
    <CommunicationPriorityListItemActionResponse.CommunicationPriorityListItemActionDataRow>
      <CommunicationType>64</CommunicationType>
      <CommunicationTypeName>sample string 1</CommunicationTypeName>
      <Id>1</Id>
      <MessageTemplate>1</MessageTemplate>
      <MessageTemplateName>sample string 2</MessageTemplateName>
      <NoActive>true</NoActive>
      <Priority>64</Priority>
    </CommunicationPriorityListItemActionResponse.CommunicationPriorityListItemActionDataRow>
    <CommunicationPriorityListItemActionResponse.CommunicationPriorityListItemActionDataRow>
      <CommunicationType>64</CommunicationType>
      <CommunicationTypeName>sample string 1</CommunicationTypeName>
      <Id>1</Id>
      <MessageTemplate>1</MessageTemplate>
      <MessageTemplateName>sample string 2</MessageTemplateName>
      <NoActive>true</NoActive>
      <Priority>64</Priority>
    </CommunicationPriorityListItemActionResponse.CommunicationPriorityListItemActionDataRow>
  </Data>
</CommunicationPriorityListItemActionResponse>