REST API - findDocuments - with Name Parameter in Request Body

The table summarizes the REST API - findDocuments - with Name parameter in request body.

Request - POST with Name Parameter in Request Body

Format POST <baseurl>/document/find

Response - POST with Name Parameter in Request Body

JSON Returns a JSON representation of the content of the FindDocumentsResponse element.
XML Returns the content of the FindDocumentsResponse element (from the DocumentService schema).

Example - POST with Name Parameter in Request Body

Request
POST <baseurl>/document/find
Body
{
  "FindDocumentRequest": {
    "-returnMetadata": "true",
    "owner": { "caseReference": "BDS-1-com.example.ordermodel.Order-1-0" },
    "name": "Proposal.docx"
  }
}
Response
{
  "result": {
    "reference": "DocumentID-e50c2653-0fd7-4fef-ad6f-2ee460ba52cf;1.0",
    "metadata": {
      "specifier": { "id": "e50c2653-0fd7-4fef-ad6f-2ee460ba52cf;1.0" },
      "name": "Proposal.docx",
      "version": "1.0",
      "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "createdDateTime": "2014-10-03T12:12:54.809",
      "createdBy": "admin",
      "lastModifiedDateTime": "2014-10-07T11:07:55.630",
      "lastModifiedBy": "admin",
      "byteSize": "24008"
    }
  }
}