Creating Multiple References Document Links for a Resource
To create single or multiple References Document link (ResourceReferenceLink) objects for a resource (Process Material, Skill, Tooling, or Work Center), you must first check out the resource object. You can add single or multiple References Documents to a resource by specifying the document OIDs in the request body.
The following example shows how to create three ResourceReferenceLink objects for a Tooling object specified in the request URI. Use the following POST URI with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMTooling:198087')/PTC.MfgProcMgmt.CreateResourceReferenceLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ResourceReferenceLink": [
{
"References@odata.bind": "Documents('OR:wt.doc.WTDocument:198089')"
},
{
"References@odata.bind": "Documents('OR:wt.doc.WTDocument:198768')"
},
{
"References@odata.bind": "Documents('OR:wt.doc.WTDocument:198235')"
}
]
}
The request adds three References Documents to the specified Tooling object.
Was this helpful?