POST api/UnitConversion
Request Information
URI Parameters
None.
Body Parameters
Collection of C_P_UnitConversionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
BaseUnit | integer |
None. |
|
BaseQty | decimal number |
None. |
|
ConvertedUnit | integer |
None. |
|
ConvertedQty | decimal number |
None. |
|
ItemCode | string |
None. |
|
EffectiveDate | date |
None. |
|
CreatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "Id": 1, "BaseUnit": 2, "BaseQty": 3.0, "ConvertedUnit": 4, "ConvertedQty": 5.0, "ItemCode": "sample string 6", "EffectiveDate": "2025-03-28T13:55:10.3589902+00:00", "CreatedBy": 8 }, { "Id": 1, "BaseUnit": 2, "BaseQty": 3.0, "ConvertedUnit": 4, "ConvertedQty": 5.0, "ItemCode": "sample string 6", "EffectiveDate": "2025-03-28T13:55:10.3589902+00:00", "CreatedBy": 8 } ]
application/xml, text/xml
Sample:
<ArrayOfC_P_UnitConversion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <C_P_UnitConversion> <BaseQty>3</BaseQty> <BaseUnit>2</BaseUnit> <ConvertedQty>5</ConvertedQty> <ConvertedUnit>4</ConvertedUnit> <CreatedBy>8</CreatedBy> <EffectiveDate>2025-03-28T13:55:10.3589902+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 6</ItemCode> </C_P_UnitConversion> <C_P_UnitConversion> <BaseQty>3</BaseQty> <BaseUnit>2</BaseUnit> <ConvertedQty>5</ConvertedQty> <ConvertedUnit>4</ConvertedUnit> <CreatedBy>8</CreatedBy> <EffectiveDate>2025-03-28T13:55:10.3589902+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 6</ItemCode> </C_P_UnitConversion> </ArrayOfC_P_UnitConversion>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |