Creating Multiple Described By Document Links for a Resource
To create single or multiple Described By Document link (ResourceDescribeLink) 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 Described By Documents to a resource by specifying the document OIDs in the request body.
The following example shows how to create three ResourceDescribeLink objects for a specific Tooling object. 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.CreateResourceDescribeLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ResourceDescribeLink": [
{
"DescribedBy@odata.bind": "Documents('OR:wt.doc.WTDocument:198088')"
},
{
"DescribedBy@odata.bind": "Documents('OR:wt.doc.WTDocument:198767')"
},
{
"DescribedBy@odata.bind": "Documents('OR:wt.doc.WTDocument:198234')"
}
]
}
The request adds three Described By Documents to the specified Tooling object.
Was this helpful?