POST Api/OilCode/Add
Request Information
URI Parameters
None.
Body Parameters
OilCodeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| OilCodeId | string |
None. |
|
| OilName | string |
None. |
|
| PertCode | string |
None. |
|
| OilBriefName | string |
None. |
|
| Density | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| Price1 | decimal number |
None. |
|
| Price2 | decimal number |
None. |
|
| Price3 | decimal number |
None. |
|
| Price4 | decimal number |
None. |
|
| Price5 | decimal number |
None. |
|
| Price6 | decimal number |
None. |
|
| Price7 | decimal number |
None. |
|
| IsuseOil | boolean |
None. |
|
| CreateTime | date |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| OilStationId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "5cde5ee1-2051-4134-966c-c65fdec20394",
"OilCodeId": "sample string 2",
"OilName": "sample string 3",
"PertCode": "sample string 4",
"OilBriefName": "sample string 5",
"Density": 1.0,
"Price": 1.0,
"Price1": 1.0,
"Price2": 1.0,
"Price3": 1.0,
"Price4": 1.0,
"Price5": 1.0,
"Price6": 1.0,
"Price7": 1.0,
"IsuseOil": true,
"CreateTime": "2026-03-02T19:49:41.9850118+08:00",
"CustomerId": "589e45e6-e01c-4f1e-802a-334a050bc1a9",
"OilStationId": "31c122b3-c5c6-4c6c-92d9-50401eb02f78"
}
application/xml, text/xml
Sample:
<OilCodeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model"> <CreateTime>2026-03-02T19:49:41.9850118+08:00</CreateTime> <CustomerId>589e45e6-e01c-4f1e-802a-334a050bc1a9</CustomerId> <Density>1</Density> <Id>5cde5ee1-2051-4134-966c-c65fdec20394</Id> <IsuseOil>true</IsuseOil> <OilBriefName>sample string 5</OilBriefName> <OilCodeId>sample string 2</OilCodeId> <OilName>sample string 3</OilName> <OilStationId>31c122b3-c5c6-4c6c-92d9-50401eb02f78</OilStationId> <PertCode>sample string 4</PertCode> <Price>1</Price> <Price1>1</Price1> <Price2>1</Price2> <Price3>1</Price3> <Price4>1</Price4> <Price5>1</Price5> <Price6>1</Price6> <Price7>1</Price7> </OilCodeDto>
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.