POST api/mobile/OperatorConfigAction

Создание, получение, изменение конфига моб. приложения Оператора

Request Information

URI Parameters

None.

Body Parameters

OperatorConfigActionRequest
NameDescriptionTypeAdditional information
ActionType

Тип действия (Info, Create, Update)

string

None.

MobileScreenId

Идентификатор экрана моб. приложения

integer

None.

ComponentId

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

integer

None.

ScreenConfigId

Идентификатор конфига моб. приложения для изменения или получения информации

integer

None.

NoActive

Статус активности записи

boolean

None.

EntityType

Тип сущности, по которой идёт действие (Config, Screen, Component)

string

None.

ScreenComponent

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

Collection of OperatorConfigActionScreenComponentRow

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "MobileScreenId": 1,
  "ComponentId": 1,
  "ScreenConfigId": 1,
  "NoActive": true,
  "EntityType": "sample string 2",
  "ScreenComponent": [
    {
      "Id": 1,
      "TypeId": 1
    },
    {
      "Id": 1,
      "TypeId": 1
    }
  ],
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 3"
}

application/xml, text/xml

Sample:
<OperatorConfigActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MobileRequest">
  <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 3</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <ComponentId>1</ComponentId>
  <EntityType>sample string 2</EntityType>
  <MobileScreenId>1</MobileScreenId>
  <NoActive>true</NoActive>
  <ScreenComponent>
    <OperatorConfigActionRequest.OperatorConfigActionScreenComponentRow>
      <Id>1</Id>
      <TypeId>1</TypeId>
    </OperatorConfigActionRequest.OperatorConfigActionScreenComponentRow>
    <OperatorConfigActionRequest.OperatorConfigActionScreenComponentRow>
      <Id>1</Id>
      <TypeId>1</TypeId>
    </OperatorConfigActionRequest.OperatorConfigActionScreenComponentRow>
  </ScreenComponent>
  <ScreenConfigId>1</ScreenConfigId>
</OperatorConfigActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OperatorConfigActionResponse
NameDescriptionTypeAdditional information
ConfigId

Идентификатор конфига моб. приложения оператора

integer

None.

Screens

Список экранов

Collection of OperatorConfigActionScreens

None.

Components

Список компонентов

Collection of OperatorConfigActionComponents

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ConfigId": 1,
  "Screens": [
    {
      "Id": 1,
      "TypeId": 1,
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Description": "sample string 3",
      "Title": "sample string 4",
      "MenuItemName": "sample string 5"
    },
    {
      "Id": 1,
      "TypeId": 1,
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Description": "sample string 3",
      "Title": "sample string 4",
      "MenuItemName": "sample string 5"
    }
  ],
  "Components": [
    {
      "Id": 1,
      "TypeId": 1,
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Description": "sample string 3",
      "Title": "sample string 4"
    },
    {
      "Id": 1,
      "TypeId": 1,
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Description": "sample string 3",
      "Title": "sample string 4"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<OperatorConfigActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MobileResponse">
  <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>
  <Components>
    <OperatorConfigActionResponse.OperatorConfigActionComponents>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <Title>sample string 4</Title>
      <Type>sample string 2</Type>
      <TypeId>1</TypeId>
    </OperatorConfigActionResponse.OperatorConfigActionComponents>
    <OperatorConfigActionResponse.OperatorConfigActionComponents>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <Title>sample string 4</Title>
      <Type>sample string 2</Type>
      <TypeId>1</TypeId>
    </OperatorConfigActionResponse.OperatorConfigActionComponents>
  </Components>
  <ConfigId>1</ConfigId>
  <Screens>
    <OperatorConfigActionResponse.OperatorConfigActionScreens>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <MenuItemName>sample string 5</MenuItemName>
      <Name>sample string 1</Name>
      <Title>sample string 4</Title>
      <Type>sample string 2</Type>
      <TypeId>1</TypeId>
    </OperatorConfigActionResponse.OperatorConfigActionScreens>
    <OperatorConfigActionResponse.OperatorConfigActionScreens>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <MenuItemName>sample string 5</MenuItemName>
      <Name>sample string 1</Name>
      <Title>sample string 4</Title>
      <Type>sample string 2</Type>
      <TypeId>1</TypeId>
    </OperatorConfigActionResponse.OperatorConfigActionScreens>
  </Screens>
</OperatorConfigActionResponse>