POST api/manage/material
Request Information
URI Parameters
None.
Body Parameters
md_material| Name | Description | Type | Additional information |
|---|---|---|---|
| mat_code | string |
Required String length: inclusive between 0 and 50 |
|
| mat_name | string |
Required String length: inclusive between 0 and 255 |
|
| account_no | string |
None. |
|
| mat_color | string |
String length: inclusive between 0 and 20 |
|
| mat_type_id | integer |
None. |
|
| mat_detail | string |
None. |
|
| mat_unit | string |
String length: inclusive between 0 and 20 |
|
| mat_price | decimal number |
Required |
|
| location_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"mat_code": "sample string 1",
"mat_name": "sample string 2",
"account_no": "sample string 3",
"mat_color": "sample string 4",
"mat_type_id": 5,
"mat_detail": "sample string 6",
"mat_unit": "sample string 7",
"mat_price": 8.0,
"location_id": 1
}
application/xml, text/xml
Sample:
<md_material xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models"> <account_no>sample string 3</account_no> <location_id>1</location_id> <mat_code>sample string 1</mat_code> <mat_color>sample string 4</mat_color> <mat_detail>sample string 6</mat_detail> <mat_name>sample string 2</mat_name> <mat_price>8</mat_price> <mat_type_id>5</mat_type_id> <mat_unit>sample string 7</mat_unit> </md_material>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.