POST api/lead/LeadMessageUpdate

Изменение сообщения лиду

Request Information

URI Parameters

None.

Body Parameters

LeadMessageUpdateRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Leads

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

integer

None.

Id

Идентификатор сообщения

integer

None.

Parent

Идентификатор сообщения, на который ссылается это сообщение

integer

None.

Subject

Тема сообщения

string

None.

Usertext

Cодержание сообщения от менедежара лиду

string

None.

Leadtext

Cодержание сообщения от лида менеджеру

string

None.

Status

Cтатус сообщения

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Leads": 1,
  "Id": 1,
  "Parent": 1,
  "Subject": "sample string 2",
  "Usertext": "sample string 3",
  "Leadtext": "sample string 4",
  "Status": 1
}

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">
  <Id>1</Id>
  <Leads>1</Leads>
  <Leadtext>sample string 4</Leadtext>
  <Operator>1</Operator>
  <Parent>1</Parent>
  <Status>1</Status>
  <Subject>sample string 2</Subject>
  <Usertext>sample string 3</Usertext>
</LeadMessageUpdateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LeadMessageUpdateResponse
NameDescriptionTypeAdditional 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>