PUT api/setting/pu/PutPUGroup?group_id={group_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
group_id

integer

Required

Body Parameters

md_PU_Group
NameDescriptionTypeAdditional information
group_name

string

Required

String length: inclusive between 0 and 255

chm_id

integer

Required

group_type

string

Required

String length: inclusive between 0 and 1

chm_min

integer

None.

chm_max

integer

None.

group_model

Collection of md_PU_Group_Model

None.

auto_time

decimal number

None.

manual_time

decimal number

None.

join_group

string

String length: inclusive between 0 and 255

Request Formats

application/json, text/json

Sample:
{
  "group_name": "sample string 1",
  "chm_id": 2,
  "group_type": "sample string 3",
  "chm_min": 1,
  "chm_max": 1,
  "group_model": [
    {
      "group_by_model": "sample string 1"
    },
    {
      "group_by_model": "sample string 1"
    }
  ],
  "auto_time": 1.0,
  "manual_time": 1.0,
  "join_group": "sample string 4"
}

application/xml, text/xml

Sample:
<md_PU_Group xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.PU">
  <auto_time>1</auto_time>
  <chm_id>2</chm_id>
  <chm_max>1</chm_max>
  <chm_min>1</chm_min>
  <group_model>
    <md_PU_Group_Model>
      <group_by_model>sample string 1</group_by_model>
    </md_PU_Group_Model>
    <md_PU_Group_Model>
      <group_by_model>sample string 1</group_by_model>
    </md_PU_Group_Model>
  </group_model>
  <group_name>sample string 1</group_name>
  <group_type>sample string 3</group_type>
  <join_group>sample string 4</join_group>
  <manual_time>1</manual_time>
</md_PU_Group>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'md_PU_Group'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.