Bill of Material, Update
Updates an existing Bill of Material Component using the supplied data and returns the details of the updated Bill of Material Component.
URL
/api/bill-of-material-update
Request Method
POST
Expandable Program
Bill of Material Editor (PDEBM)
Required Fields
ASSEMBLY_ID
COMPONENT_ID
DWG_ITEM_CODE
(at least one field to update)
AUTH_TOKEN
COMPONENT_ID
DWG_ITEM_CODE
(at least one field to update)
AUTH_TOKEN
Auth Token
This API call requires an Authentication Token ("Auth Token") for the required field AUTH_TOKEN. Auth Tokens are obtained from Auth Token, Get.
Example Request JSON
{
"ASSEMBLY_ID": "PUMP002",
"COMPONENT_ID": "MOTOR003",
"DWG_ITEM_CODE": "0001",
"BILLS_TYPE": "EP",
"NOTES": "Notes can be up to 32,765 characters long.",
"AUTH_TOKEN": ""
}
Full Request JSON
{
"ASSEMBLY_ID": "",
"COMPONENT_ID": "",
"DWG_ITEM_CODE": "",
"REQUIRED_QTY": "",
"START_DATE": "",
"END_DATE": "",
"START_SN": "",
"END_SN": "",
"BILLS_TYPE": "",
"SCRAP_FACTOR": "",
"KIT_STORES": "",
"OPER_CODE": "",
"LT_OFFSET": "",
"REMARK": "",
"PDFBM_USER_1": "",
"PDFBM_USER_2": "",
"PDFBM_USER_3": "",
"PDFBM_USER_4": "",
"PDFBM_USER_5": "",
"PDFBM_USER_6": "",
"PDFBM_USER_7": "",
"PDFBM_USER_8": "",
"NOTES": "",
"AUTH_TOKEN": ""
}
Success Response
Returned HTTP status indicates success:
200/OK
Returned JSON contains the successfully updated Bill of Material Component:
200/OK
Returned JSON contains the successfully updated Bill of Material Component:
{
"ASSEMBLY_ID": "",
"COMPONENT_ID": "",
"DWG_ITEM_CODE": "",
"REQUIRED_QTY": "",
"START_DATE": "",
"END_DATE": "",
"START_SN": "",
"END_SN": "",
"BILLS_TYPE": "",
"SCRAP_FACTOR": "",
"KIT_STORES": "",
"OPER_CODE": "",
"LT_OFFSET": "",
"REMARK": "",
"PDFBM_USER_1": "",
"PDFBM_USER_2": "",
"PDFBM_USER_3": "",
"PDFBM_USER_4": "",
"PDFBM_USER_5": "",
"PDFBM_USER_6": "",
"PDFBM_USER_7": "",
"PDFBM_USER_8": "",
"CREATED_BY": "",
"DATE_CREATED": "",
"MODIFIED_BY": "",
"DATE_MODIFIED": "",
"OPERATOR_ID": "",
"DATE_LAST_UPDT": "",
"TIME_LAST_UPDT": "",
"NOTES": ""
}
Failure Response
Returned HTTP status indicates failure:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Bill of Material Component update:
400/Request JSON is invalid.
401/Auth Token was not provided.
401/Auth Token is malformed.
401/Auth Token login failure.
405/Request method must be POST.
500/(Error Message)
Returned JSON contains error information for the failed Bill of Material Component update:
{
"MESSAGE": "",
"MESSAGE_CODE": ""
}
