POST api/PreventativeMaintenanceInspections/AddOrUpdateItem
Request Information
URI Parameters
None.
Body Parameters
PreventativeMaintenanceInspectionSectionItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Title | string |
None. |
|
| SubTitle | string |
None. |
|
| SortNumber | integer |
None. |
|
| Response | Response |
None. |
|
| Notes | string |
None. |
|
| HasFollowup | boolean |
None. |
|
| IsGeneralNotes | boolean |
None. |
|
| PreventativeMaintenanceInspectionSectionId | string |
None. |
|
| PreventativeMaintenanceInspectionSectionItemTemplateId | string |
None. |
|
| PreventativeMaintenanceInspectionImages | Collection of PreventativeMaintenanceInspectionImageViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"title": "sample string 2",
"subTitle": "sample string 3",
"sortNumber": 4,
"response": 0,
"notes": "sample string 5",
"hasFollowup": true,
"isGeneralNotes": true,
"preventativeMaintenanceInspectionSectionId": "sample string 8",
"preventativeMaintenanceInspectionSectionItemTemplateId": "sample string 9",
"preventativeMaintenanceInspectionImages": [
{
"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"
},
{
"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:
<PreventativeMaintenanceInspectionSectionItemViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LindsayDealer.Poco.Models">
<HasFollowup>true</HasFollowup>
<Id>sample string 1</Id>
<IsGeneralNotes>true</IsGeneralNotes>
<Notes>sample string 5</Notes>
<PreventativeMaintenanceInspectionImages>
<PreventativeMaintenanceInspectionImageViewModel>
<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>
<PreventativeMaintenanceInspectionImageViewModel>
<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>
</PreventativeMaintenanceInspectionImages>
<PreventativeMaintenanceInspectionSectionId>sample string 8</PreventativeMaintenanceInspectionSectionId>
<PreventativeMaintenanceInspectionSectionItemTemplateId>sample string 9</PreventativeMaintenanceInspectionSectionItemTemplateId>
<Response>Unanswered</Response>
<SortNumber>4</SortNumber>
<SubTitle>sample string 3</SubTitle>
<Title>sample string 2</Title>
</PreventativeMaintenanceInspectionSectionItemViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.