POST api/Definations/InsertUnits?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
Units| Name | Description | Type | Additional information |
|---|---|---|---|
| UnitID | integer |
None. |
|
| UnitName | string |
None. |
|
| WeightInKg | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"UnitID": 1,
"UnitName": "sample string 2",
"WeightInKg": 3.0
}
application/xml, text/xml
Sample:
<Units xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models"> <UnitID>1</UnitID> <UnitName>sample string 2</UnitName> <WeightInKg>3</WeightInKg> </Units>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |