Creating a Subject Link for an Existing Revisable Regulatory Submission
A subject link exists between an existing revisable regulatory submission and the subject associated with it.
To create a subject link for an existing revisable regulatory submission, you must first check out the regulatory submission. You must also reserve the revisable regulatory submission.
|
To add a subject to an existing regulatory submission, the subject type must adhere to the association type that is defined in the association rules for the regulatory submission.
|
You must unreserve the revisable regulatory submission 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 the non-revisable regulatory submission.
|
This example shows you how to create a subject link for an existing revisable regulatory submission. This example shows you how to create a subject link by specifying the regulatory submission object in the request URI and subject in the request body.
In this example, the association type, that is, Role B Type for the revisable regulatory submission is set as Part in the association rules.
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 adds the specified part as a subject to the revisable regulatory submission.
The request creates a subject link between the specified revisable regulatory submission and the subject that is associated with it.