POST api/TankTemplates/Edit
Add and Edit Tank Template
Request Information
URI Parameters
None.
Body Parameters
TankTemplatesObject| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
For Edit mode set value otherwise set = 0 |
Object |
None. |
| DistributorID |
Set default value = ""(Blank) Otherwise set DistributorID |
Object |
None. |
| Type |
Type is required. Set TankType from GetAllMasterValues Method |
Object |
None. |
| Name |
Name is required. |
Object |
None. |
| Volume |
For Circular, Rochester,Vertical. Volume is required otherwise Set value = "0" |
Object |
None. |
| Height |
For Circular, Vertical. Height is required otherwise Set value = "0" |
Object |
None. |
| Width |
For Circular. Width is required otherwise Set value = "0" |
Object |
None. |
| Length |
For Rochester. Length is required otherwise Set value = "0" |
Object |
None. |
| SensorOffset |
For Vertical, Circular, Strap. SensorOffset is required otherwise Set value = "0" |
Object |
None. |
| Photo |
Set default value = ""(Blank) Otherwise set Photo |
Object |
None. |
| StrappingData |
For Strap. StrappingData is required otherwise Set value = ""(blank) |
Object |
None. |
| MinimumVolt | Object |
None. |
|
| MaximumVolt | Object |
None. |
|
| PressureProbeRating | Object |
None. |
|
| TankLiquid | Object |
None. |
|
| Gravity | Object |
None. |
|
| PressureProbeType | Object |
None. |
|
| Status |
Status is required. Set TankStatus from GetAllMasterValues Method |
Object |
None. |
Request Formats
application/json, text/json
{
"ID": {},
"DistributorID": {},
"Type": {},
"Name": {},
"Volume": {},
"Height": {},
"Width": {},
"Length": {},
"SensorOffset": {},
"Photo": {},
"StrappingData": {},
"MinimumVolt": {},
"MaximumVolt": {},
"PressureProbeRating": {},
"TankLiquid": {},
"Gravity": {},
"PressureProbeType": {},
"Status": {},
"CreatedBy": {},
"CreatedDateTime": {},
"CreatedIp": {},
"ModifiedBy": {},
"ModifiedDateTime": {},
"ModifiedIp": {}
}
application/xml, text/xml
<TankTemplatesObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrategicAlliance"> <CreatedBy /> <CreatedDateTime /> <CreatedIp /> <DistributorID /> <Gravity /> <Height /> <ID /> <Length /> <MaximumVolt /> <MinimumVolt /> <ModifiedBy /> <ModifiedDateTime /> <ModifiedIp /> <Name /> <Photo /> <PressureProbeRating /> <PressureProbeType /> <SensorOffset /> <Status /> <StrappingData /> <TankLiquid /> <Type /> <Volume /> <Width /> </TankTemplatesObject>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.