Creating a Subject Link for an Existing Revisable Regulatory Submission
To create a subject link for an existing revisable regulatory submission, you must first check out the regulatory submission.
To create a subject link for an existing revisable regulatory submission, you must reserve the regulatory submission, and unreserve it after you create the subject link.
|
You cannot create or delete a SubjectLink on an existing non-revisable regulatory submission, as the Subject navigation is immutable on non-revisable regulatory submission.
|
This example shows you how to create a subject link for an existing revisable regulatory submission. Use the following POST URI with the request body.
URI
POST Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.UniqueDeviceIdentifierSubmission:266279')/SubjectLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"@odata.type": "#PTC.RegMstr.SubjectLink",
"Subject@odata.bind": "Subjects('OR:wt.part.WTPart:104425')"
}
The request creates a link between the specified subject and the revisable regulatory submission.