POST api/lead/setarchiveflag
Request Information
URI Parameters
None.
Body Parameters
SetArchiveFlagRequestName | Description | Type | Additional information |
---|---|---|---|
Id |
id лида |
integer |
None. |
InArchive |
Флаг добавить / вернуть из архива |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "InArchive": true }
application/xml, text/xml
Sample:
<SetArchiveFlagRequest 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> <InArchive>true</InArchive> </SetArchiveFlagRequest>
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>