Creating Multiple AssociativeToSCCLinks
To create single or multiple AssociativeToSCCLinks, you must first check out the part object. You can create single or multiple AssociativeToSCCLinks by specifying the part and Standard CC OIDs in the request body.
* 
To create an AssociativeToSCCLink object, you can specify only the latest iteration of a revision of a Standard CC object.
Example: Creating an AssociativeToSCCLink Object
This example shows you how to create an AssociativeToSCCLink between a part and a Standard CC object. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"associativeOID": {
"ID": "OR:wt.part.WTPart:277890"
},
"associativeToStandardCCLinks": [
{
"StandardCC@odata.bind": "StandardCCs('VR:com.ptc.windchill.mpml.pmi.MPMStandardCC:269789')",
"CustomAttribute": "test"
}
]
}
Example: Creating Multiple AssociativeToSCCLinks
This example shows you how to create two AssociativeToSCCLinks between a part and two Standard CC objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"associativeOID": {
"ID": "OR:wt.part.WTPart:277890"
},
"associativeToStandardCCLinks": [
{
"StandardCC@odata.bind": "StandardCCs('VR:com.ptc.windchill.mpml.pmi.MPMStandardCC:269789')",
"CustomAttribute": "test"
},
{
"StandardCC@odata.bind": "StandardCCs('VR:com.ptc.windchill.mpml.pmi.MPMStandardCC:277914')"
}
]
}
Was this helpful?