This API is used for accepting or rejecting the weld or weld component.
Header
Header Name (Key) |
Description |
Value |
---|---|---|
Authorization |
Access token |
Bearer <access_token> |
Sample URL
URL format: POST http://localhost/wqms101Server/api/v2/WQMS/UpdateWeldResults
Body
The body parameters change based on the type of action you want to perform on the weld or weld component.
To accept the weld or weld component, the sample body syntax can be written as follows:
{
"UpdateWeldsResult":{
"WeldUpdateAcceptRejectProperties":{
"InspUser":"abcd@xyz.com",
"InspDate":"2021/06/08-00:00:00:000",
"InspReason":"EE_WQMSReason_Accepted",
"InspectionDef":"WQMSWeld"
},
"Project":"Proj1",
"Discipline":"STR",
"WeldOperation":"Accept",
"ROIName":"Proj1-M44-ROI-STR-FUP-0004",
"InspectionItemColumnset":"CS_WQMSSTRFUPROI_InspItemColumnSet#CS_WQMSWeldEdgeInfo_ColumnSet",
"ROIAcceptanceProperty":"WQMSWeld_FUP_IntRes|WQMSWeld_FUP_ClntRes#WQMSWeldEdge_InspStatus",
"InspUserProperty":"WQMSWeld_FUP_InspecterName#WQMSWeldEdge_InspUser",
"InspDateProperty":"WQMSWeld_FUP_InspDate#WQMSWeldEdge_InspDate",
"InspRejectReasonProperty":"WQMSWeld_FUP_Acc_RejReason#WQMSWeldEdge_Reason",
"InspReportNumberProperty":"WQMSWeld_FUP_RNumber",
"IsInInspectionProperty":"WQMSWeld_IsInInspection",
"SelectedObjects":[
{
"UID":"Weld_Proj1_41_DEV-CNC-NDE-1-44",
"Class":"WQMSWeld",
"Name":"41_DEV-CNC-NDE-1-44",
"OBID":"0V3014A",
"CI_WQMSWeld_WeldLabel":"41",
"CI_WQMSWeld_WeldNumber":"41",
"CI_WQMSWeld_Status":null,
"CI_WQMSWeld_Comp1PieceNumber":"41A",
"CI_WQMSWeld_Comp2PieceNumber":"41B",
"CI_WQMSWeld_Comp3PieceNumber":"41C",
"CI_WQMSWeld_Comp4PieceNumber":"40A",
"CI_WQMSWeld_Comp5PieceNumber":null,
"CI_WQMSWeld_Comp6PieceNumber":null,
"CI_WQMSWeld_Comp7PieceNumber":null,
"CI_WQMSWeld_Comp8PieceNumber":null,
"CI_WQMSWeld_JointConfig":null,
"CI_WQMSWeld_Comp1MatDesc":"Aluminium",
"CI_WQMSWeld_Comp2MatDesc":"Aluminium",
"CI_WQMSWeld_Comp1MVRNumber":"Proj1-M44-ROI-STR-MAV-0003",
"CI_WQMSWeld_Comp2MVRNumber":"Proj1-M44-ROI-STR-MAV-0003",
"CI_WQMSWeld_FUP_RootGap":null,
"CI_WQMSWeld_FUP_Alignment":null,
"CI_WQMSWeld_FUP_EdgePreparation":null,
"CI_WQMSWeld_FUP_IsPreWHTReq":null,
"CI_WQMSWeld_FUP_ClntRes":null,
"CI_WQMSWeld_FUP_IntRes":null,
"CI_WQMSWeld_FUP_Acc_RejReason":null,
"CI_WQMSWeld_FUP_InspecterName":null,
"CI_WQMSWeld_FUP_InspDate":null,
"CI_WQMSWeld_FUP_Remarks":null,
"CI_WQMSWeld_Drawing1Number":"DEV-CNC-NDE-1-44",
"CI_WQMSWeld_Sheet":null,
"CI_WQMSWeld_Drawing1Revision":"1",
"CI_WQMSWeld_FUP_RNumber":null,
"CI_WQMSWeld_RejectedNDT":null,
"CI_WQMSWeld_IsInInspection":true,
"CI_WQMSWeld_AddToHoldLot":null,
"Config":"PL_Proj1",
"LastUpdatedDate":"2021-05-19T08:47:20.381Z"
}
]
}
}
To reject the weld or weld component, the sample body syntax can be written as follows:
{
"UpdateWeldsResult":{
"WeldUpdateAcceptRejectProperties":{
"InspUser":"abcd@xyz.com",
"InspDate":"2021/06/08-00:00:00:000",
"InspReason":"EE_VentDrainJoint",
"InspectionDef":"WQMSWeld",
"WeldersList":"",
"SelectedNDT":"EE_FUP",
"WeldStatus":"EE_RepairSegment"
},
"Project":"Proj1",
"Discipline":"STR",
"WeldOperation":"Reject",
"ROIName":"Proj1-M44-ROI-STR-FUP-0004",
"InspectionItemColumnset":"CS_WQMSSTRFUPROI_InspItemColumnSet#CS_WQMSWeldEdgeInfo_ColumnSet",
"ROIAcceptanceProperty":"WQMSWeld_FUP_IntRes|WQMSWeld_FUP_ClntRes#WQMSWeldEdge_InspStatus",
"InspUserProperty":"WQMSWeld_FUP_InspecterName#WQMSWeldEdge_InspUser",
"InspDateProperty":"WQMSWeld_FUP_InspDate#WQMSWeldEdge_InspDate",
"InspRejectReasonProperty":"WQMSWeld_FUP_Acc_RejReason#WQMSWeldEdge_Reason",
"InspReportNumberProperty":"WQMSWeld_FUP_RNumber",
"IsInInspectionProperty":"WQMSWeld_IsInInspection",
"SelectedObjects":[
{
"UID":"Weld_Proj1_42_DEV-CNC-NDE-1-44",
"Class":"WQMSWeld",
"Name":"42_DEV-CNC-NDE-1-44",
"OBID":"0V301AA",
"CI_WQMSWeld_WeldLabel":"42",
"CI_WQMSWeld_WeldNumber":"42",
"CI_WQMSWeld_Status":null,
"CI_WQMSWeld_Comp1PieceNumber":"42A",
"CI_WQMSWeld_Comp2PieceNumber":"42B",
"CI_WQMSWeld_Comp3PieceNumber":"40B",
"CI_WQMSWeld_Comp4PieceNumber":"41A",
"CI_WQMSWeld_Comp5PieceNumber":null,
"CI_WQMSWeld_Comp6PieceNumber":null,
"CI_WQMSWeld_Comp7PieceNumber":null,
"CI_WQMSWeld_Comp8PieceNumber":null,
"CI_WQMSWeld_JointConfig":null,
"CI_WQMSWeld_Comp1MatDesc":"Steel",
"CI_WQMSWeld_Comp2MatDesc":"Iron",
"CI_WQMSWeld_Comp1MVRNumber":"Proj1-M44-ROI-STR-MAV-0003",
"CI_WQMSWeld_Comp2MVRNumber":"Proj1-M44-ROI-STR-MAV-0003",
"CI_WQMSWeld_FUP_RootGap":null,
"CI_WQMSWeld_FUP_Alignment":null,
"CI_WQMSWeld_FUP_EdgePreparation":null,
"CI_WQMSWeld_FUP_IsPreWHTReq":null,
"CI_WQMSWeld_FUP_ClntRes":null,
"CI_WQMSWeld_FUP_IntRes":null,
"CI_WQMSWeld_FUP_Acc_RejReason":null,
"CI_WQMSWeld_FUP_InspecterName":null,
"CI_WQMSWeld_FUP_InspDate":null,
"CI_WQMSWeld_FUP_Remarks":null,
"CI_WQMSWeld_Drawing1Number":"DEV-CNC-NDE-1-44",
"CI_WQMSWeld_Sheet":null,
"CI_WQMSWeld_Drawing1Revision":"1",
"CI_WQMSWeld_FUP_RNumber":null,
"CI_WQMSWeld_RejectedNDT":null,
"CI_WQMSWeld_IsInInspection":true,
"CI_WQMSWeld_AddToHoldLot":null,
"Config":"PL_Proj1",
"LastUpdatedDate":"2021-05-19T08:47:20.381Z"
}
]
}
}
Sample Response
The system generates same response for both Accept and Reject actions on the selected weld or weld component.
{@odata.context: "https://smartwqms.intergraph.com/Wqmsupgmserver/ap…ph.WQMS.Services.WQMSSmartAPIs.SaveObjectResponse", Message: "Successfully saved the information.", HasError: false, ErrorMessage: "", HasWarnings: false, …}
@odata.context: "https://smartwqms.intergraph.com/Wqmsupgmserver/api/v2/WQMS/$metadata#Intergraph.WQMS.Services.WQMSSmartAPIs.SaveObjectResponse"
ErrorMessage: ""
HasError: false
HasWarnings: false
LabelUIDENSMapping: []
Message: "Successfully saved the information."
WarningMessage: ""