POST api/user/ConfigCrmDataAction

Добавление, изменение, деактивация данных в справочниках: пункты меню CRM, функциональные плитки, группы, графики

Request Information

URI Parameters

None.

Body Parameters

ConfigCrmDataActionRequest
NameDescriptionTypeAdditional information
UserId

Идентификатор пользователя

integer

None.

ActionType

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

string

None.

ForGroup

Признак, что действие идёт по группам в рамках конкретного пукта меню

boolean

None.

ForItems

Признак, что действие идёт по пуктам меню (добавить, получить, изменить, удалить)

boolean

None.

ForFunctional

Признак, что действие идёт по функциональным плиткам (добавить, получить, изменить, удалить)

boolean

None.

ForCharts

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

boolean

None.

ItemsId

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

integer

None.

GroupId

Идентификатор группы плиток в конкретном пункте меню

integer

None.

FunctionalId

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

integer

None.

ChartsId

Идентификатор графика на странице аналитика

integer

None.

Code

Код сущности

string

None.

Name

Наименование сущности

string

None.

Type

Тип сущности

string

None.

NoActive

Признак активации/деактивации сущности

boolean

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "ActionType": "sample string 1",
  "ForGroup": true,
  "ForItems": true,
  "ForFunctional": true,
  "ForCharts": true,
  "ItemsId": 1,
  "GroupId": 1,
  "FunctionalId": 1,
  "ChartsId": 1,
  "Code": "sample string 2",
  "Name": "sample string 3",
  "Type": "sample string 4",
  "NoActive": true,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 5"
}

application/xml, text/xml

Sample:
<ConfigCrmDataActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.UserRequest">
  <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 5</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <ChartsId>1</ChartsId>
  <Code>sample string 2</Code>
  <ForCharts>true</ForCharts>
  <ForFunctional>true</ForFunctional>
  <ForGroup>true</ForGroup>
  <ForItems>true</ForItems>
  <FunctionalId>1</FunctionalId>
  <GroupId>1</GroupId>
  <ItemsId>1</ItemsId>
  <Name>sample string 3</Name>
  <NoActive>true</NoActive>
  <Type>sample string 4</Type>
  <UserId>1</UserId>
</ConfigCrmDataActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ConfigCrmDataActionResponse
NameDescriptionTypeAdditional information
Items

Идентификатор созданного пункта меню

integer

None.

Group

Идентификатор созданной группы

integer

None.

Functional

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

integer

None.

Charts

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

integer

None.

ItemsList

Таблица пунктов меню

Collection of ConfigCrmDataActionItemRow

None.

FunctionalList

Таблица плиток

Collection of ConfigCrmDataActionFunctionalRow

None.

GroupList

Таблица групп пункта меню

Collection of ConfigCrmDataActionGroupRow

None.

ChartsList

Таблица групп пункта меню

Collection of ConfigCrmDataActionChartsRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": 1,
  "Group": 1,
  "Functional": 1,
  "Charts": 1,
  "ItemsList": [
    {
      "Id": 1,
      "ItemsId": 1,
      "Code": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "ItemsId": 1,
      "Code": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "FunctionalList": [
    {
      "Id": 1,
      "FunctionalId": 1,
      "Code": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "FunctionalId": 1,
      "Code": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "GroupList": [
    {
      "Id": 1,
      "GroupId": 1,
      "Type": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "GroupId": 1,
      "Type": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "ChartsList": [
    {
      "Id": 1,
      "ChartsId": 1,
      "Type": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "ChartsId": 1,
      "Type": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ConfigCrmDataActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.UserResponse">
  <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>
  <Charts>1</Charts>
  <ChartsList>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionChartsRow>
      <ChartsId>1</ChartsId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionChartsRow>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionChartsRow>
      <ChartsId>1</ChartsId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionChartsRow>
  </ChartsList>
  <Functional>1</Functional>
  <FunctionalList>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionFunctionalRow>
      <Code>sample string 1</Code>
      <FunctionalId>1</FunctionalId>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionFunctionalRow>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionFunctionalRow>
      <Code>sample string 1</Code>
      <FunctionalId>1</FunctionalId>
      <Id>1</Id>
      <Name>sample string 2</Name>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionFunctionalRow>
  </FunctionalList>
  <Group>1</Group>
  <GroupList>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionGroupRow>
      <GroupId>1</GroupId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionGroupRow>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionGroupRow>
      <GroupId>1</GroupId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Type>sample string 1</Type>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionGroupRow>
  </GroupList>
  <Items>1</Items>
  <ItemsList>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionItemRow>
      <Code>sample string 1</Code>
      <Id>1</Id>
      <ItemsId>1</ItemsId>
      <Name>sample string 2</Name>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionItemRow>
    <ConfigCrmDataActionResponse.ConfigCrmDataActionItemRow>
      <Code>sample string 1</Code>
      <Id>1</Id>
      <ItemsId>1</ItemsId>
      <Name>sample string 2</Name>
    </ConfigCrmDataActionResponse.ConfigCrmDataActionItemRow>
  </ItemsList>
</ConfigCrmDataActionResponse>