POST Api/OilDevice/Add
Request Information
URI Parameters
None.
Body Parameters
OilDeviceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| OilStationId | globally unique identifier |
None. |
|
| DeviceNo | string |
None. |
|
| DeciveStatus | integer |
None. |
|
| TotalGunCount | integer |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreateTime | date |
None. |
|
| DeviceName | string |
None. |
|
| TankNo | string |
None. |
|
| OilCode | string |
None. |
|
| OilName | string |
None. |
|
| CustomerNum | string |
None. |
|
| StationNo | string |
None. |
|
| StationName | string |
None. |
|
| CustomerName | string |
None. |
|
| gunList | Collection of OilGunDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "3c2d542b-6f41-4b9b-a1dd-3a4716dc9221",
"CustomerId": "26927709-450d-48d4-a7f2-f08b90215182",
"OilStationId": "ee51325c-1ec6-4745-ae3f-6697489ee7e8",
"DeviceNo": "sample string 2",
"DeciveStatus": 1,
"TotalGunCount": 1,
"IsDeleted": true,
"CreateTime": "2026-03-02T19:51:15.0322529+08:00",
"DeviceName": "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",
"gunList": [
{
"Id": "84962b34-5735-4fcb-ac0b-8b198dff0554",
"CustomerId": "018774be-969f-47b0-bfc1-3fefb9c2fc8c",
"OilStationId": "d01c293c-7dab-4062-84dd-868ecb576b7c",
"GunNo": 1,
"GunStatus": 1,
"IsDeleted": true,
"CreateTime": "2026-03-02T19:51:15.0322529+08:00",
"OilDeviceId": "91971286-0c97-4cb3-a5ef-aa4ca2bbc6a1",
"OilTankId": "cc344e43-b757-421a-8a79-1acdbe0f03e2",
"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"
},
{
"Id": "84962b34-5735-4fcb-ac0b-8b198dff0554",
"CustomerId": "018774be-969f-47b0-bfc1-3fefb9c2fc8c",
"OilStationId": "d01c293c-7dab-4062-84dd-868ecb576b7c",
"GunNo": 1,
"GunStatus": 1,
"IsDeleted": true,
"CreateTime": "2026-03-02T19:51:15.0322529+08:00",
"OilDeviceId": "91971286-0c97-4cb3-a5ef-aa4ca2bbc6a1",
"OilTankId": "cc344e43-b757-421a-8a79-1acdbe0f03e2",
"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:
<OilDeviceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model">
<CreateTime>2026-03-02T19:51:15.0322529+08:00</CreateTime>
<CustomerId>26927709-450d-48d4-a7f2-f08b90215182</CustomerId>
<CustomerName>sample string 10</CustomerName>
<CustomerNum>sample string 7</CustomerNum>
<DeciveStatus>1</DeciveStatus>
<DeviceName>sample string 3</DeviceName>
<DeviceNo>sample string 2</DeviceNo>
<Id>3c2d542b-6f41-4b9b-a1dd-3a4716dc9221</Id>
<IsDeleted>true</IsDeleted>
<OilCode>sample string 5</OilCode>
<OilName>sample string 6</OilName>
<OilStationId>ee51325c-1ec6-4745-ae3f-6697489ee7e8</OilStationId>
<StationName>sample string 9</StationName>
<StationNo>sample string 8</StationNo>
<TankNo>sample string 4</TankNo>
<TotalGunCount>1</TotalGunCount>
<gunList>
<OilGunDto>
<CreateTime>2026-03-02T19:51:15.0322529+08:00</CreateTime>
<CustomerId>018774be-969f-47b0-bfc1-3fefb9c2fc8c</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>84962b34-5735-4fcb-ac0b-8b198dff0554</Id>
<IsDeleted>true</IsDeleted>
<MachineType>sample string 2</MachineType>
<OilCode>sample string 5</OilCode>
<OilDeviceId>91971286-0c97-4cb3-a5ef-aa4ca2bbc6a1</OilDeviceId>
<OilGunCodePriceParameter>sample string 3</OilGunCodePriceParameter>
<OilName>sample string 6</OilName>
<OilStationId>d01c293c-7dab-4062-84dd-868ecb576b7c</OilStationId>
<OilTankId>cc344e43-b757-421a-8a79-1acdbe0f03e2</OilTankId>
<StationName>sample string 9</StationName>
<StationNo>sample string 8</StationNo>
<TankNo>sample string 4</TankNo>
</OilGunDto>
<OilGunDto>
<CreateTime>2026-03-02T19:51:15.0322529+08:00</CreateTime>
<CustomerId>018774be-969f-47b0-bfc1-3fefb9c2fc8c</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>84962b34-5735-4fcb-ac0b-8b198dff0554</Id>
<IsDeleted>true</IsDeleted>
<MachineType>sample string 2</MachineType>
<OilCode>sample string 5</OilCode>
<OilDeviceId>91971286-0c97-4cb3-a5ef-aa4ca2bbc6a1</OilDeviceId>
<OilGunCodePriceParameter>sample string 3</OilGunCodePriceParameter>
<OilName>sample string 6</OilName>
<OilStationId>d01c293c-7dab-4062-84dd-868ecb576b7c</OilStationId>
<OilTankId>cc344e43-b757-421a-8a79-1acdbe0f03e2</OilTankId>
<StationName>sample string 9</StationName>
<StationNo>sample string 8</StationNo>
<TankNo>sample string 4</TankNo>
</OilGunDto>
</gunList>
</OilDeviceDto>
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.