GetVariantSpecs
说明
返回给定产品或部件的变型规范列表。
事物
PTC-PLM.Windchill.BillOfProcess.Part
输入
用于标识要从后端系统中获取的数据。
参数
类型
说明
必需
inputs
JSON
partId
字符串
部件 ID,系统将从后端系统获取其数据。
attributes
JSON
PTC.ProdPlatformMgmt.VariantSpecification
字符串
数组
将返回变型规范属性的列表。
version
字符串
API 版本。
示例 
{
"inputs": {
"partId": "OR:wt.part.WTPart:481033"
},
"attributes": {
"PTC.ProdPlatformMgmt.VariantSpecification": [
"Name",
"Number"
]
},
"version": "1"
}
输出
服务将以 CCO 格式返回 JSON 对象。
示例 
{
"timeStamp": "2025-02-09 19:16:55.592",
"data": [
{
"itemListsData": [
{
"metadata": {
"Number": {
"label": "Number",
"type": "STRING"
},
"ID": {
"label": "ID",
"type": "STRING"
},
"Name": {
"label": "Name",
"type": "STRING"
}
},
"items": [
{
"Number": {
"value": "00021"
},
"ID": {
"value": "OR:com.ptc.wpcfg.doc.VariantSpec:513235"
},
"Name": {
"value": "Long Green Standard"
}
},
{
"Number": {
"value": "00022"
},
"ID": {
"value": "OR:com.ptc.wpcfg.doc.VariantSpec:513297"
},
"Name": {
"value": "Short Red Soft"
}
}
],
"objectType": "PTC.ProdPlatformMgmt.VariantSpecification"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.VOps.WCOperationAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
这对您有帮助吗?