REST API - findDocuments - POST with Query String in Request Body
The table summarizes the REST API - findDocuments - with query string in request body.
More information about queries used with the findDocuments operation, see Queries for findDocuments.
Response - POST with Query String 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 Query String in Request Body
Request |
POST <baseurl>/document/find |
Body |
{ "FindDocumentRequest": { "-returnMetadata": "true", "owner": { "caseReference": "BDS-1-com.example.ordermodel.Order-1-0" }, "query": { "string": "cmis:name LIKE 'Prop%' AND cmis:creationDate < '2014-10-06T00:00:00' ", "documentType": "cmis:document" } } } |
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" } } } |
Copyright © Cloud Software Group, Inc. All rights reserved.