POST File/UploadFile
Request Information
URI Parameters
None.
Body Parameters
FileModelName | Description | Type | Additional 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:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |