Deleting the Existing Table Data Associated with a Non-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 non-revisable regulatory submission. To delete the existing table data object or subtype, you must have Modify permissions to the existing non-revisable regulatory submission.
This example shows you how to delete an existing table data object associated with an existing non-revisable regulatory submission.
Use the following DELETE URI.
URI
DELETE /Windchill/servlet/odata/RegMstr/RegulatorySubmissions('OR:com.ptc.qualitymanagement.regmstr.RegulatorySubmission:259857')/TableData('OR:com.ptc.tabledata.TableData:283971')
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 associated with an existing non-revisable regulatory submission by specifying the table-data type in the typecast that is specified in the request URI. In this example, the non-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/RegulatorySubmissions('OR:com.ptc.qualitymanagement.regmstr.RegulatorySubmission:259889')/TableData/PTC.RegMstr.SimpleTableData('OR:com.ptc.tabledata.TableData:264840')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The request deletes the specified SimpleTableData table-data type and returns the table data subtype.
The following example shows you how to delete a specific table data subtype associated with an existing non-revisable regulatory submission by specifying the table-data type in the typecast that is specified in the request URI. In this example, the non-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/RegulatorySubmissions('OR:com.ptc.qualitymanagement.regmstr.RegulatorySubmission:259857')/TableData/PTC.RegMstr.SimpleTDSubtype1('OR:com.ptc.tabledata.TableData:264909')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The request deletes the specified SimpleTDSubtype1 table data subtype and returns the two base table data objects.