PUT api/bom/{bom_id}/thread/{bom_thr_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bom_id

integer

Required

bom_thr_id

integer

Required

Body Parameters

m_BOM_Thread
NameDescriptionTypeAdditional information
position

string

Required

String length: inclusive between 0 and 1

thr_type

string

Required

String length: inclusive between 0 and 1

mat_id

integer

Required

thr_no

integer

Required

remark

string

None.

sizes

Collection of m_BOM_ThreadSizes

Required

Request Formats

application/json, text/json

Sample:
{
  "position": "sample string 1",
  "thr_type": "sample string 2",
  "mat_id": 3,
  "thr_no": 1,
  "remark": "sample string 4",
  "sizes": [
    {
      "size": 1,
      "capacity": 2.0
    },
    {
      "size": 1,
      "capacity": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<m_BOM_Thread xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.BOM">
  <mat_id>3</mat_id>
  <position>sample string 1</position>
  <remark>sample string 4</remark>
  <sizes>
    <m_BOM_ThreadSizes>
      <capacity>2</capacity>
      <size>1</size>
    </m_BOM_ThreadSizes>
    <m_BOM_ThreadSizes>
      <capacity>2</capacity>
      <size>1</size>
    </m_BOM_ThreadSizes>
  </sizes>
  <thr_no>1</thr_no>
  <thr_type>sample string 2</thr_type>
</m_BOM_Thread>

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 'm_BOM_Thread'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.