Attaches a document report to the specified record. A third party document review application can use the Attach Document Report to send a document report such as a correction notice to Automation.
To specify the document to be attached, 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", and "description" properties. See the example for details.
POST https://apis.accela.com/v4/documentReview/records/14CAP-00000-009AZ/documents
Header:
Content-Type: multipart/form-data; boundary=---------------------------7de1a0c22082
Body:
-----------------------------7de1a0c22082 (file content)
Content-Disposition: form-data; name="uploadedFile"; filename="summaryReport.pdf"
Content-Type: text/plain
-----------------------------7de1a0c22082 (file attribute)
Content-Disposition: form-data; name="fileInfo"
[
{
"serviceProviderCode": "BPTDEV",
"fileName": " summaryReport.pdf",
"type": "text/plain",
"description": "Upload a report with file info unit testing"
}
]
{
"status": 200,
"result": [
{
"id": 37174
}
]
}