POST api/clientapi/attachfile?clientId={clientId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

integer

Required

Body Parameters

None.

Response Information

Resource Description

AttachFileResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

FileDescription

FileDescription

None.

url

Special Url for froala editor

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "FileDescription": {
    "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
  },
  "url": "sample string 3"
}

application/xml, text/xml

Sample:
<AttachFileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Order.Contract">
  <FileDescription>
    <Date>sample string 7</Date>
    <DocumentType>10</DocumentType>
    <DownloadDate>sample string 6</DownloadDate>
    <Id>1</Id>
    <IsAvailableForTourist>true</IsAvailableForTourist>
    <IsNeedSignedDocument>true</IsNeedSignedDocument>
    <Name>sample string 2</Name>
    <ShowInAgreement>true</ShowInAgreement>
    <ShowInRequest>true</ShowInRequest>
    <Url>sample string 3</Url>
  </FileDescription>
  <Message>sample string 2</Message>
  <Success>true</Success>
  <url>sample string 3</url>
</AttachFileResponse>