api/SerialNumberCrossReference/Update (POST)

Updates an existing Serial Number Cross Reference using the supplied update data.
HTTP Method: POST
Required Fields: ASSEMBLY_ID, ASSEMBLY_SN, COMPONENT_ID, COMPONENT_SN 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 Serial Number Cross Reference.

Request Information

Parameters

NameDescriptionAdditional information
RequestData
This is a JSON object containing Serial Number Cross Reference update data.

Update Serial Number Cross Reference Example:
{
  "ASSEMBLY_ID": "ASSY002",
  "ASSEMBLY_SN": "02022016-0001",
  "COMPONENT_ID": "COMP002",
  "COMPONENT_SN": "02022016-0001",
  "START_DATE": "2016/02/26",
  "END_DATE": "2016/02/26",
  "ORDER_ID": "S123456",
  "LINE_NUMBER": "20"
}
Returns 1 Serial Number Cross Reference if successful.
This is like 'Edit' in Expandable.

Accepted Serial Number Cross Reference Fields:
ASSEMBLY_ID, ASSEMBLY_SN, COMMENT, COMPONENT_ID, 
COMPONENT_SN, END_DATE, LINE_NUMBER, ORDER_ID, 
RA_REASON, REFERENCE, START_DATE

Define this parameter in the request body.

Response Information

Success:
200/OK
Body contains JSON object with updated Serial Number Cross Reference.

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 Serial Number Cross Reference Fields:
ASSEMBLY_ID, ASSEMBLY_SN, COMMENT, COMPONENT_ID, COMPONENT_SN, CREATED_BY, DATE_CREATED, DATE_LAST_UPDT, DATE_MODIFIED, END_DATE, LINE_NUMBER, MODIFIED_BY, OPERATOR_ID, ORDER_ID, RA_REASON, REFERENCE, START_DATE, TIME_LAST_UPDT