POST api/lead/updatestatus
обновление статуса у лида
Request Information
URI Parameters
None.
Body Parameters
LeadStatusRequstName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
StatusId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "StatusId": 2 }
application/xml, text/xml
Sample:
<LeadStatusRequst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Lead.Contract"> <Id>1</Id> <StatusId>2</StatusId> </LeadStatusRequst>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Объект лида
BaseResponseName | Description | Type | Additional information |
---|---|---|---|
DebugCollector |
None. |
Response Formats
application/json, text/json
Sample:
{ "DebugCollector": { "DebugInfo": [ "sample string 1", "sample string 2" ] }, "Messages": [ { "Text": "sample string 1", "Type": 0 }, { "Text": "sample string 1", "Type": 0 } ] }
application/xml, text/xml
Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.WebServiceContracts.DictionaryContracts"> <DebugCollector xmlns:d2p1="http://schemas.datacontract.org/2004/07/Megatec.IntegrationGate.Common"> <d2p1:DebugInfo xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d2p1:DebugInfo> </DebugCollector> <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.WebServiceContracts"> <d2p1:Message> <d2p1:Text>sample string 1</d2p1:Text> <d2p1:Type>INFO</d2p1:Type> </d2p1:Message> <d2p1:Message> <d2p1:Text>sample string 1</d2p1:Text> <d2p1:Type>INFO</d2p1:Type> </d2p1:Message> </Messages> </BaseResponse>