POST api/lead/LeadMessageUpdate
Изменение сообщения лиду
Request Information
URI Parameters
None.
Body Parameters
LeadMessageUpdateRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Leads |
Идентификатор лида |
integer |
None. |
| LeadMessage |
Идентификатор сообщения лида |
integer |
None. |
| Parent |
Идентификатор сообщения, на который ссылается это сообщение |
integer |
None. |
| Subject |
Тема сообщения |
string |
None. |
| Usertext |
Cодержание сообщения от менедежара лиду |
string |
None. |
| Leadtext |
Cодержание сообщения от лида менеджеру |
string |
None. |
| Status |
Cтатус сообщения |
integer |
None. |
| AllLeadMessageAction |
Признак, что действие необходимо применить ко всем сообщениям лида |
boolean |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Leads": 1,
"LeadMessage": 1,
"Parent": 1,
"Subject": "sample string 1",
"Usertext": "sample string 2",
"Leadtext": "sample string 3",
"Status": 1,
"AllLeadMessageAction": true,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 4"
}
application/xml, text/xml
Sample:
<LeadMessageUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request"> <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> <AllLeadMessageAction>true</AllLeadMessageAction> <LeadMessage>1</LeadMessage> <Leads>1</Leads> <Leadtext>sample string 3</Leadtext> <Parent>1</Parent> <Status>1</Status> <Subject>sample string 1</Subject> <Usertext>sample string 2</Usertext> </LeadMessageUpdateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LeadMessageUpdateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Leadmessage |
Идентификатор сообщения |
Collection of LeadMessageCreateResponse |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Leadmessage": [
{
"Id": 1,
"ErrorCode": 2,
"Message": "sample string 3"
},
{
"Id": 1,
"ErrorCode": 2,
"Message": "sample string 3"
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<LeadMessageUpdateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response">
<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>
<Leadmessage>
<LeadMessageCreateResponse>
<ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">2</ErrorCode>
<Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message>
<Id>1</Id>
</LeadMessageCreateResponse>
<LeadMessageCreateResponse>
<ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">2</ErrorCode>
<Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message>
<Id>1</Id>
</LeadMessageCreateResponse>
</Leadmessage>
</LeadMessageUpdateResponse>