POST api/PU/DashboardPUUpper/CreatePUUpper
Request Information
URI Parameters
None.
Body Parameters
m_MachinePUUpper| Name | Description | Type | Additional information |
|---|---|---|---|
| machine_id | integer |
None. |
|
| machine_name | string |
None. |
|
| pu_plan_id | integer |
None. |
|
| pu_plan_no | string |
None. |
|
| total | integer |
None. |
|
| model | Collection of m_MachinePUUpperModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"machine_id": 1,
"machine_name": "sample string 1",
"pu_plan_id": 1,
"pu_plan_no": "sample string 2",
"total": 3,
"model": [
{
"bom_id": 1,
"model": "sample string 2",
"color": "sample string 3",
"totalAmount": 4,
"size": [
{
"size": 1,
"amount": 1
},
{
"size": 1,
"amount": 1
}
]
},
{
"bom_id": 1,
"model": "sample string 2",
"color": "sample string 3",
"totalAmount": 4,
"size": [
{
"size": 1,
"amount": 1
},
{
"size": 1,
"amount": 1
}
]
}
]
}
application/xml, text/xml
Sample:
<m_MachinePUUpper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.PU.Dashboard">
<machine_id>1</machine_id>
<machine_name>sample string 1</machine_name>
<model>
<m_MachinePUUpperModel>
<bom_id>1</bom_id>
<color>sample string 3</color>
<model>sample string 2</model>
<size>
<m_MachinePUUpperModelSize>
<amount>1</amount>
<size>1</size>
</m_MachinePUUpperModelSize>
<m_MachinePUUpperModelSize>
<amount>1</amount>
<size>1</size>
</m_MachinePUUpperModelSize>
</size>
<totalAmount>4</totalAmount>
</m_MachinePUUpperModel>
<m_MachinePUUpperModel>
<bom_id>1</bom_id>
<color>sample string 3</color>
<model>sample string 2</model>
<size>
<m_MachinePUUpperModelSize>
<amount>1</amount>
<size>1</size>
</m_MachinePUUpperModelSize>
<m_MachinePUUpperModelSize>
<amount>1</amount>
<size>1</size>
</m_MachinePUUpperModelSize>
</size>
<totalAmount>4</totalAmount>
</m_MachinePUUpperModel>
</model>
<pu_plan_id>1</pu_plan_id>
<pu_plan_no>sample string 2</pu_plan_no>
<total>3</total>
</m_MachinePUUpper>
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.