Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Regulatory Master Domain > Examples for the Revisable Regulatory Submission > Checking In, Checking Out, or Revising a Revisable Regulatory Submission
  
Checking In, Checking Out, or Revising a Revisable Regulatory Submission
The following examples show you how to check in, check out, or revise a revisable regulatory submission.
* 
You cannot perform the Check In, Check Out, Undo Checkout or Revise action on a non-revisable regulatory submission.
Example: Checking In a Revisable Regulatory Submission
This example shows you how to check in a revisable regulatory submission. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:237897')/PTC.RegMstr.CheckIn
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"KeepCheckedOut": true,
"CheckInNote": "this is a check in note",
"CheckOutNote": ""
}
Example: Checking Out a Revisable Regulatory Submission
This example shows you how to check out a revisable regulatory submission. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:237532')/PTC.RegMstr.CheckOut
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"CheckOutNote": "this is a check out note"
}
Example: Undo Checkout of a Revisable Regulatory Submission
This example shows you how to undo check out of a revisable regulatory submission. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:237532')/PTC.RegMstr.UndoCheckOut
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
}
Example: Revising a Revisable Regulatory Submission
This example shows you how to revise a revisable regulatory submission to the desired revision directly. For example, if the existing revision of the object is B, the request revises the specified regulatory submission to revision P directly. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/RegMstr/RegSubmission2('OR:com.ptc.qualitymanagement.regmstr.RegSubmission2:237242')/PTC.RegMstr.Revise
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"VersionId": "P"
}