POST api/ItemShape/Create
Request Information
URI Parameters
None.
Body Parameters
ItemShapeMaster_Add_Model| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemShapeID | integer |
None. |
|
| ItemShapeName | string |
None. |
|
| Remarks | string |
None. |
|
| IsLengthApplicable | boolean |
None. |
|
| Attributes | Collection of ItemShapeAttribute_Model |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemShapeID": 1,
"ItemShapeName": "sample string 2",
"Remarks": "sample string 3",
"IsLengthApplicable": true,
"Attributes": [
{
"ItemShapeID": 1,
"AttributeID": 2,
"AttributeName": "sample string 3"
},
{
"ItemShapeID": 1,
"AttributeID": 2,
"AttributeName": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<ItemShapeMaster_Add_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Model.Master">
<Attributes>
<ItemShapeAttribute_Model>
<AttributeID>2</AttributeID>
<AttributeName>sample string 3</AttributeName>
<ItemShapeID>1</ItemShapeID>
</ItemShapeAttribute_Model>
<ItemShapeAttribute_Model>
<AttributeID>2</AttributeID>
<AttributeName>sample string 3</AttributeName>
<ItemShapeID>1</ItemShapeID>
</ItemShapeAttribute_Model>
</Attributes>
<IsLengthApplicable>true</IsLengthApplicable>
<ItemShapeID>1</ItemShapeID>
<ItemShapeName>sample string 2</ItemShapeName>
<Remarks>sample string 3</Remarks>
</ItemShapeMaster_Add_Model>
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.