api/BillOfMaterial/Update (POST)
Updates an existing Bill of Material Component using the supplied update data.
HTTP Method: POST
Required Fields: ASSEMBLY_ID, COMPONENT_ID, DWG_ITEM_CODE to locate the record and at least one other field to update
Requires an Authentication Token in the AuthToken HTTP header. Authentication Tokens are obtained from api/Security/Login (POST).
Returns the updated Bill of Material Component.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| RequestData | This is a JSON object containing Bill of Material Component update data.
Update Bill of Material Component Example:
{
"ASSEMBLY_ID": "PUMP002",
"COMPONENT_ID": "MOTOR003",
"DWG_ITEM_CODE": "0001",
"BILLS_TYPE": "EP",
"NOTES": "Notes can be up to 32,765 characters long."
}
Returns 1 Bill of Material Component if successful.
This is like 'Edit' in Expandable.
Accepted Bill of Material Fields:
ASSEMBLY_ID, BILLS_TYPE, COMPONENT_ID, DWG_ITEM_CODE,
END_DATE, END_SN, KIT_STORES, LT_OFFSET,
NOTES, OPER_CODE, PDFBM_USER_1, PDFBM_USER_2,
PDFBM_USER_3, PDFBM_USER_4, PDFBM_USER_5, PDFBM_USER_6,
PDFBM_USER_7, PDFBM_USER_8, REMARK, REQUIRED_QTY,
SCRAP_FACTOR, START_DATE, START_SN |
Define this parameter in the request body. |
Response Information
Success:200/OK
Body contains JSON object with updated Bill of Material Component.
Error:
400/Request JSON is invalid.
401/AuthToken was not provided.
401/AuthToken is malformed.
401/AuthToken is expired.
401/AuthToken login failure.
500/(Message)
Body contains JSON object with Message and MessageCode.
Returned Bill of Material Fields:
ASSEMBLY_ID, BILLS_TYPE, COMPONENT_ID, COMPONENT_TYPE, CREATED_BY, DATE_CREATED, DATE_LAST_UPDT, DATE_LOW_LEVEL, DATE_MODIFIED, DWG_ITEM_CODE, END_DATE, END_SN, KIT_STORES, LOW_LEVEL_CODE, LT_OFFSET, MODIFIED_BY, NOTES, OPER_CODE, OPERATOR_ID, PDFBM_USER_1, PDFBM_USER_2, PDFBM_USER_3, PDFBM_USER_4, PDFBM_USER_5, PDFBM_USER_6, PDFBM_USER_7, PDFBM_USER_8, REMARK, REQUIRED_QTY, SCRAP_FACTOR, START_DATE, START_SN, TIME_LAST_UPDT