POST api/PreventativeMaintenanceInspections/AddPhoto

Request Information

URI Parameters

None.

Body Parameters

PreventativeMaintenanceInspectionImageViewModel
NameDescriptionTypeAdditional information
Id

string

None.

ImageBlob

string

String length: inclusive between 0 and 2000

ImageUrl

string

String length: inclusive between 0 and 5000

ImageContainer

string

String length: inclusive between 0 and 200

OriginalFileName

string

None.

OriginalFileSize

integer

None.

PreventativeMaintenanceInspectionSectionItemId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "imageBlob": "sample string 2",
  "imageUrl": "sample string 3",
  "imageContainer": "sample string 4",
  "originalFileName": "sample string 5",
  "originalFileSize": 1,
  "preventativeMaintenanceInspectionSectionItemId": "sample string 6"
}

application/xml, text/xml

Sample:
<PreventativeMaintenanceInspectionImageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LindsayDealer.Poco.Models">
  <Id>sample string 1</Id>
  <ImageBlob>sample string 2</ImageBlob>
  <ImageContainer>sample string 4</ImageContainer>
  <ImageUrl>sample string 3</ImageUrl>
  <OriginalFileName>sample string 5</OriginalFileName>
  <OriginalFileSize>1</OriginalFileSize>
  <PreventativeMaintenanceInspectionSectionItemId>sample string 6</PreventativeMaintenanceInspectionSectionItemId>
</PreventativeMaintenanceInspectionImageViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.