Question
Associate WTPart with EPMDocument
Hi, My goal now is to create a EPMDocument in a Workspace with associated WTPart by REST APIs
What I plant to do:
Step1: Create a EPMDocument in Workspace
API: Windchill/servlet/rest/v1/wgm/workspaces/{workspaceId}/store
=> Done
Step2: Create a WTPart
API: Windchill/servlet/odata/ProdMgmt/Parts
=> Error here
My body:
{
"Name":"testToday",
"AssemblyMode": {
"Value": "separable",
"Display": "Separable"
},
"PhantomManufacturingPart" : false,
"Organization@odata.bind": "Groups('OR:wt.org.WTOrganization:123')",
"Context@odata.bind": "Containers('OR:wt.inf.library.WTLibrary:123')"
}
Error
Error
{
"error": {
"code": null,
"message": "The wcType: com.ptc.ElectricalPart is invalid"
}
}
Step3: Create Association
API: Windchill/servlet/rest/v1/wtparts/{WTPart}/associations/to/documents
Does anyone have faced with similar error in step2? Please help me to fix. Thank so much !

