POST api/bearing
Request Information
URI Parameters
None.
Body Parameters
BearingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| Spec | string |
None. |
|
| InnerDiameterMm | decimal number |
None. |
|
| OuterDiameterMm | decimal number |
None. |
|
| WidthMm | decimal number |
None. |
|
| Type | string |
None. |
|
| Price | decimal number |
None. |
|
| IsAvailable | boolean |
None. |
|
| SortOrder | integer |
None. |
|
| CreatedAt | date |
None. |
|
| UpdatedAt | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Spec": "sample string 4",
"InnerDiameterMm": 1.0,
"OuterDiameterMm": 1.0,
"WidthMm": 1.0,
"Type": "sample string 5",
"Price": 1.0,
"IsAvailable": true,
"SortOrder": 7,
"CreatedAt": "2026-10-13T23:54:34.0782311+08:00",
"UpdatedAt": "2026-10-13T23:54:34.0782311+08:00"
}
application/xml, text/xml
Sample:
<BearingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EngiCompute.Models"> <Code>sample string 2</Code> <CreatedAt>2026-10-13T23:54:34.0782311+08:00</CreatedAt> <Id>1</Id> <InnerDiameterMm>1</InnerDiameterMm> <IsAvailable>true</IsAvailable> <Name>sample string 3</Name> <OuterDiameterMm>1</OuterDiameterMm> <Price>1</Price> <SortOrder>7</SortOrder> <Spec>sample string 4</Spec> <Type>sample string 5</Type> <UpdatedAt>2026-10-13T23:54:34.0782311+08:00</UpdatedAt> <WidthMm>1</WidthMm> </BearingModel>
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.