POST api/user/ConfigCrmAction
Создание, получение, изменение настроек конфига CRM для пользователя
Request Information
URI Parameters
None.
Body Parameters
ConfigCrmActionRequestName | Description | Type | Additional information |
---|---|---|---|
ActionType |
Тип действия: Create, Update, Info |
string |
None. |
UserId |
Идентификатор пользователя для создания, изменения или получения данных |
integer |
None. |
GroupId |
Идентификатор группы для изменения или создания |
integer |
None. |
NoActive |
Статус НЕактивности группы |
boolean |
None. |
Active |
Статус активности группы |
boolean |
None. |
FunctionalId |
Идентификатор плитки, которую нужно поместить в группу |
integer |
None. |
InGroupId |
Идентификатор группы, в которую нужно поместить плитку |
integer |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{ "ActionType": "sample string 1", "UserId": 1, "GroupId": 1, "NoActive": true, "Active": true, "FunctionalId": 1, "InGroupId": 1, "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
<ConfigCrmActionRequest 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 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <Active>true</Active> <FunctionalId>1</FunctionalId> <GroupId>1</GroupId> <InGroupId>1</InGroupId> <NoActive>true</NoActive> <UserId>1</UserId> </ConfigCrmActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ConfigCrmActionResponseName | Description | Type | Additional information |
---|---|---|---|
UiConfigList |
Идентификатор конфига CRM пользователя |
integer |
None. |
Items |
Таблица пунктов меню |
Collection of ConfigCrmActionItemRow |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{ "UiConfigList": 1, "Items": [ { "Id": 1, "ItemsId": 1, "Name": "sample string 1", "Code": "sample string 2", "NoActive": true, "Groups": [ { "Id": 1, "GroupId": 1, "Type": "sample string 1", "Name": "sample string 2", "NoActive": true, "Functional": [ { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true }, { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true } ] }, { "Id": 1, "GroupId": 1, "Type": "sample string 1", "Name": "sample string 2", "NoActive": true, "Functional": [ { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true }, { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true } ] } ] }, { "Id": 1, "ItemsId": 1, "Name": "sample string 1", "Code": "sample string 2", "NoActive": true, "Groups": [ { "Id": 1, "GroupId": 1, "Type": "sample string 1", "Name": "sample string 2", "NoActive": true, "Functional": [ { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true }, { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true } ] }, { "Id": 1, "GroupId": 1, "Type": "sample string 1", "Name": "sample string 2", "NoActive": true, "Functional": [ { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true }, { "Id": 1, "FunctionalId": 1, "Code": "sample string 1", "Name": "sample string 2", "NoActive": true } ] } ] } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
<ConfigCrmActionResponse 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> <Items> <ConfigCrmActionResponse.ConfigCrmActionItemRow> <Code>sample string 2</Code> <Groups> <ConfigCrmActionResponse.ConfigCrmActionGroupRow> <Functional> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> </Functional> <GroupId>1</GroupId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> <Type>sample string 1</Type> </ConfigCrmActionResponse.ConfigCrmActionGroupRow> <ConfigCrmActionResponse.ConfigCrmActionGroupRow> <Functional> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> </Functional> <GroupId>1</GroupId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> <Type>sample string 1</Type> </ConfigCrmActionResponse.ConfigCrmActionGroupRow> </Groups> <Id>1</Id> <ItemsId>1</ItemsId> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionItemRow> <ConfigCrmActionResponse.ConfigCrmActionItemRow> <Code>sample string 2</Code> <Groups> <ConfigCrmActionResponse.ConfigCrmActionGroupRow> <Functional> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> </Functional> <GroupId>1</GroupId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> <Type>sample string 1</Type> </ConfigCrmActionResponse.ConfigCrmActionGroupRow> <ConfigCrmActionResponse.ConfigCrmActionGroupRow> <Functional> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> <Code>sample string 1</Code> <FunctionalId>1</FunctionalId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionFunctionalRow> </Functional> <GroupId>1</GroupId> <Id>1</Id> <Name>sample string 2</Name> <NoActive>true</NoActive> <Type>sample string 1</Type> </ConfigCrmActionResponse.ConfigCrmActionGroupRow> </Groups> <Id>1</Id> <ItemsId>1</ItemsId> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigCrmActionResponse.ConfigCrmActionItemRow> </Items> <UiConfigList>1</UiConfigList> </ConfigCrmActionResponse>