Checks in a file containing document review comments for the specified record. A third party document review application can use the Checkin Document Review API to check-in a reviewed document file to Automation.
To specify the document to be checked in, use the HTTP headers "Content-Type:multipart/form-data" and "Content-Disposition:form-data". For the form-data, use the name="uploadedFile" parameter to specify the "filename=", and name="fileInfo" to specify the file attributes. "fileInfo" is a string containing an array of "serviceProviderCode", "fileName", "type", "resubmit", and "description" properties properties. Set the "resubmit" property to "true" if the third-party application requires a document resubmittal. See the example for details.
POST https://apis.accela.com/v4/documentReview/records/14CAP-00000-009AZ/documents/500062/checkin
Header:
Content-Type: multipart/form-data; boundary=---------------------------7de1a0c22082
Body:
-----------------------------7de1a0c22082 (file content)
Content-Disposition: form-data; name="uploadedFile"; filename="test.pdf"
Content-Type: text/plain
Kay test content here
-----------------------------7de1a0c22082 (file attribute)
Content-Disposition: form-data; name="fileInfo"
[
{
"serviceProviderCode": "BPTDEV",
"fileName": "test.pdf",
"resubmit": "true",
"type": "text/plain",
"description": "Upload file with file info unit testing"
}
]
-----------------------------7de1a0c22082--
{
"status": 200,
"result": [
{
"id": 500063
}
]
}