PUT api/Product/Unit
Request Information
URI Parameters
None.
Body Parameters
Unit| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| description | string |
None. |
|
| quantityPerUnit | decimal number |
None. |
|
| EdiUnit | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"description": "sample string 1",
"quantityPerUnit": 1.0,
"EdiUnit": "sample string 2"
}
application/xml, text/xml
Sample:
<Unit xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>1</id> <description>sample string 1</description> <quantityPerUnit>1</quantityPerUnit> <EdiUnit>sample string 2</EdiUnit> </Unit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Unit| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| description | string |
None. |
|
| quantityPerUnit | decimal number |
None. |
|
| EdiUnit | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"description": "sample string 1",
"quantityPerUnit": 1.0,
"EdiUnit": "sample string 2"
}
application/xml, text/xml
Sample:
<Unit xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>1</id> <description>sample string 1</description> <quantityPerUnit>1</quantityPerUnit> <EdiUnit>sample string 2</EdiUnit> </Unit>