POST api/File/UploadDocumentInAzure

Request Information

URI Parameters

None.

Body Parameters

FileRequest
NameDescriptionTypeAdditional information
EffectiveDate

string

None.

ThruDate

string

None.

Overwrite

boolean

None.

FileType

DocumentType

None.

Extension

FileExtension

None.

ID

string

None.

Name

string

None.

Base64Content

string

None.

Request Formats

text/json, application/json

Sample:
Request sample for fileRequest 

--------------------------------------------------------------------------------------------------------------------------------

{
  "EffectiveDate": "sample string 1",
  "ThruDate": "sample string 2",
  "Overwrite": true,
  "FileType": 0,
  "Extension": 0,
  "ID": "sample string 3",
  "Name": "sample string 4",
  "Base64Content": "sample string 5"
}

--------------------------------------------------------------------------------------------------------------------------------


text/xml, application/xml

Sample:
Request sample for fileRequest 

--------------------------------------------------------------------------------------------------------------------------------

<FileRequest xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.DTOs" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Base64Content xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.CommonDTOs">sample string 5</Base64Content>
  <ID xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.CommonDTOs">sample string 3</ID>
  <Name xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.CommonDTOs">sample string 4</Name>
  <Extension xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.CommonDTOs">PDF</Extension>
  <FileType xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.CommonDTOs">POA</FileType>
  <EffectiveDate>sample string 1</EffectiveDate>
  <Overwrite>true</Overwrite>
  <ThruDate>sample string 2</ThruDate>
</FileRequest>

--------------------------------------------------------------------------------------------------------------------------------


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

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.

Response Formats

text/json, application/json, text/xml, application/xml

Sample:

--------------------------------------------------------------------------------------------------------------------------------

Response type is Task`1.It's propertises are System.Net.Http.HttpResponseMessage Result,System.Threading.Tasks.TaskFactory`1[System.Net.Http.HttpResponseMessage] Factory,System.Int32 Id,System.AggregateException Exception,System.Threading.Tasks.TaskStatus Status,System.Boolean IsCanceled,System.Boolean IsCompleted,System.Threading.Tasks.TaskCreationOptions CreationOptions,System.Object AsyncState,System.Boolean IsFaulted.Sample is not available.

--------------------------------------------------------------------------------------------------------------------------------