Deleting the Existing Table Data Associated with a Revisable Regulatory Submission
 
This API added to the domain version 6 in WRS 2.7.1 is only supported with the Windchill 12.1.2.9 and above releases.
You can delete a specific table data object or a table data subtype associated with an existing revisable regulatory submission.
To delete the existing table data object or subtype, you must have Modify permissions to the existing revisable regulatory submission, and the regulatory submission must be the latest checked-out version.
This example shows you how to delete an existing table data object associated with an existing revisable regulatory submission by specifying the OID of the checked-out version of the table data object in the request URI.
Use the following DELETE URI.
URI
DELETE /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:256705')/TableData('OR:com.ptc.tabledata.TableData:283982')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The request deletes the specified table data object and returns the 204 status code.
Example: Deleting a Specific Type of Table Data Using a Typecast
The following example shows you how to delete a specific table-data type that is associated to an existing revisable regulatory submission by specifying the table-data type in the typecast specified in the request URI. In this example, the revisable regulatory submission has one base table data object and a table data subtype associated to it.
Use the following DELETE URI.
URI
DELETE /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:256708')/TableData/PTC.RegMstr.TableData2('OR:com.ptc.tabledata.TableData:264961')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The request deletes the specified TableData2 table-data type and returns the table data subtype.
The following example shows you how to delete a specific table data subtype that is associated to an existing revisable regulatory submission by specifying the table-data type in the typecast specified in the request URI. In this example, the revisable regulatory submission has two base table data objects and a table data subtype associated to it.
Use the following DELETE URI.
URI
DELETE /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:256788')/TableData/PTC.RegMstr.TDSubtype2('OR:com.ptc.tabledata.TableData:264969')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The request deletes the specified TDSubtype2 table data subtype and returns the two base table data objects.