POST File/UploadAttachment

Request Information

URI Parameters

None.

Body Parameters

UploadModel
NameDescriptionTypeAdditional information
TowingId

integer

None.

Base64File

string

None.

DocName

string

None.

DocDescription

string

None.

AttachmentTypeId

integer

None.

FileSize

string

None.

ContentType

string

None.

IsActive

boolean

None.

UserId

integer

None.

Screen

string

None.

RecordId

string

None.

SystemId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TowingId": 1,
  "Base64File": "sample string 2",
  "DocName": "sample string 3",
  "DocDescription": "sample string 4",
  "AttachmentTypeId": 5,
  "FileSize": "sample string 6",
  "ContentType": "sample string 7",
  "IsActive": true,
  "UserId": 9,
  "Screen": "sample string 10",
  "RecordId": "sample string 11",
  "SystemId": 1
}

application/xml, text/xml

Sample:
<UploadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TowPaymentsAPI.Models">
  <AttachmentTypeId>5</AttachmentTypeId>
  <Base64File>sample string 2</Base64File>
  <ContentType>sample string 7</ContentType>
  <DocDescription>sample string 4</DocDescription>
  <DocName>sample string 3</DocName>
  <FileSize>sample string 6</FileSize>
  <IsActive>true</IsActive>
  <RecordId>sample string 11</RecordId>
  <Screen>sample string 10</Screen>
  <SystemId>1</SystemId>
  <TowingId>1</TowingId>
  <UserId>9</UserId>
</UploadModel>

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 'UploadModel'.

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.