POST Api/OilGun/Add
Request Information
URI Parameters
None.
Body Parameters
OilGunDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| OilStationId | globally unique identifier |
None. |
|
| GunNo | integer |
None. |
|
| GunStatus | integer |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreateTime | date |
None. |
|
| OilDeviceId | globally unique identifier |
None. |
|
| OilTankId | globally unique identifier |
None. |
|
| MachineType | string |
None. |
|
| OilGunCodePriceParameter | string |
None. |
|
| TankNo | string |
None. |
|
| OilCode | string |
None. |
|
| OilName | string |
None. |
|
| CustomerNum | string |
None. |
|
| StationNo | string |
None. |
|
| StationName | string |
None. |
|
| CustomerName | string |
None. |
|
| DeviceNo | string |
None. |
|
| DeviceName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "b8af6a73-fbc3-4d70-bb38-864ba4c94e0e",
"CustomerId": "1947dfd6-6bf6-4d6d-a76d-c68fc4b0351a",
"OilStationId": "872c98a8-fc6e-4282-b584-180868dbbb7a",
"GunNo": 1,
"GunStatus": 1,
"IsDeleted": true,
"CreateTime": "2026-03-02T19:52:45.0592797+08:00",
"OilDeviceId": "a84301dd-e9ac-4e41-bb38-4865502f292c",
"OilTankId": "d1cefb2a-faaa-4783-b2a1-12e2f68adcc6",
"MachineType": "sample string 2",
"OilGunCodePriceParameter": "sample string 3",
"TankNo": "sample string 4",
"OilCode": "sample string 5",
"OilName": "sample string 6",
"CustomerNum": "sample string 7",
"StationNo": "sample string 8",
"StationName": "sample string 9",
"CustomerName": "sample string 10",
"DeviceNo": "sample string 11",
"DeviceName": "sample string 12"
}
application/xml, text/xml
Sample:
<OilGunDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model"> <CreateTime>2026-03-02T19:52:45.0592797+08:00</CreateTime> <CustomerId>1947dfd6-6bf6-4d6d-a76d-c68fc4b0351a</CustomerId> <CustomerName>sample string 10</CustomerName> <CustomerNum>sample string 7</CustomerNum> <DeviceName>sample string 12</DeviceName> <DeviceNo>sample string 11</DeviceNo> <GunNo>1</GunNo> <GunStatus>1</GunStatus> <Id>b8af6a73-fbc3-4d70-bb38-864ba4c94e0e</Id> <IsDeleted>true</IsDeleted> <MachineType>sample string 2</MachineType> <OilCode>sample string 5</OilCode> <OilDeviceId>a84301dd-e9ac-4e41-bb38-4865502f292c</OilDeviceId> <OilGunCodePriceParameter>sample string 3</OilGunCodePriceParameter> <OilName>sample string 6</OilName> <OilStationId>872c98a8-fc6e-4282-b584-180868dbbb7a</OilStationId> <OilTankId>d1cefb2a-faaa-4783-b2a1-12e2f68adcc6</OilTankId> <StationName>sample string 9</StationName> <StationNo>sample string 8</StationNo> <TankNo>sample string 4</TankNo> </OilGunDto>
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.