POST api/lead/attachments?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

AttachmentsResponse
NameDescriptionTypeAdditional information
Files

Collection of FileDescription

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Files": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Extension": "",
      "Url": "sample string 3",
      "ShowInAgreement": true,
      "ShowInRequest": true,
      "DownloadDate": "sample string 6",
      "Date": "sample string 7",
      "IsAvailableForTourist": true,
      "IsNeedSignedDocument": true,
      "DocumentType": 10
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Extension": "",
      "Url": "sample string 3",
      "ShowInAgreement": true,
      "ShowInRequest": true,
      "DownloadDate": "sample string 6",
      "Date": "sample string 7",
      "IsAvailableForTourist": true,
      "IsNeedSignedDocument": true,
      "DocumentType": 10
    }
  ],
  "RedirectUrl": "sample string 1",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:29:08.3293321+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<AttachmentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Files">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 1</RedirectUrl>
  <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
    <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:29:08.3293321+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Order.Contract">
    <d2p1:FileDescription>
      <d2p1:Date>sample string 7</d2p1:Date>
      <d2p1:DocumentType>10</d2p1:DocumentType>
      <d2p1:DownloadDate>sample string 6</d2p1:DownloadDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsAvailableForTourist>true</d2p1:IsAvailableForTourist>
      <d2p1:IsNeedSignedDocument>true</d2p1:IsNeedSignedDocument>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:ShowInAgreement>true</d2p1:ShowInAgreement>
      <d2p1:ShowInRequest>true</d2p1:ShowInRequest>
      <d2p1:Url>sample string 3</d2p1:Url>
    </d2p1:FileDescription>
    <d2p1:FileDescription>
      <d2p1:Date>sample string 7</d2p1:Date>
      <d2p1:DocumentType>10</d2p1:DocumentType>
      <d2p1:DownloadDate>sample string 6</d2p1:DownloadDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsAvailableForTourist>true</d2p1:IsAvailableForTourist>
      <d2p1:IsNeedSignedDocument>true</d2p1:IsNeedSignedDocument>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:ShowInAgreement>true</d2p1:ShowInAgreement>
      <d2p1:ShowInRequest>true</d2p1:ShowInRequest>
      <d2p1:Url>sample string 3</d2p1:Url>
    </d2p1:FileDescription>
  </Files>
</AttachmentsResponse>