POST File/UploadFile

Request Information

URI Parameters

None.

Body Parameters

FileModel
NameDescriptionTypeAdditional information
FileBytes

Collection of byte

Required

FileName

string

Required

BusinessId

integer

None.

TowingId

integer

None.

UserId

integer

Required

ContentType

string

None.

FileDescription

string

None.

DocTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "FileBytes": "QEA=",
  "FileName": "sample string 1",
  "BusinessId": 2,
  "TowingId": 3,
  "UserId": 4,
  "ContentType": "sample string 5",
  "FileDescription": "sample string 6",
  "DocTypeId": 7
}

application/xml, text/xml

Sample:
<FileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TowPaymentsAPI.Models">
  <BusinessId>2</BusinessId>
  <ContentType>sample string 5</ContentType>
  <DocTypeId>7</DocTypeId>
  <FileBytes>QEA=</FileBytes>
  <FileDescription>sample string 6</FileDescription>
  <FileName>sample string 1</FileName>
  <TowingId>3</TowingId>
  <UserId>4</UserId>
</FileModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FileModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.