edoc content services Guide
Breadcrumbs

Search for files

Method and endpoint

POST /Folders/search

You can use the POST /Folders/search method and endpoint to search for files in the destination system. You use this function to search for a file type (folderType), e.g. customer files. You can limit the search with several search criteria.

Example of a request

JSON
POST /Folders/search
Accept: application/json
ModuleId: d3one
ConnectionString: targetHost=https://test.d-velop.cloud;apikey=MyApiKey;repositoryid=MyRepositoryId;

{
  "folderType": "c0c494ec-4031-45a3-a77a-b4692f2bc1f1",
  "searchCriteria": {
    "1623f20a-7f1d-40a9-b208-65db622c5b2c": "MyCustomer",
    "bdbaccd6-dfa5-4031-b8cd-ae1126dea8bc": "1234"
  }
}

Example of a response

JSON
[
  {
    "id": "O500000421",
    "caption": "MyCustomer 1234",
    "category": "43e94",
    "mimeType": "application/vnd.dvelop.folder.empty",
    "fileName": "---dummy.",
    "fileSize": 0,
    "version": "1",
    "createdAt": 1641830824,
    "fileUpdatedAt": 1641830824,
    "propertiesUpdatedAt": 1641835056,
    "properties": [
      {
        "id": "10",
        "name": "Customer name",
        "value": [
          "MyCustomer"
        ]
      },
      {
        "id": "11",
        "name": "Customer number",
        "value": [
          "1234"
        ]
      },
      {
        "id": "property_document_id",
        "name": "Document ID",
        "value": [
          "O500000421"
        ]
      },
      {
        "id": "property_document_number",
        "name": "Document No.",
        "value": [
          "O500000421"
        ]
      },
      {
        "id": "property_state",
        "name": "Status",
        "value": [
          "Released"
        ]
      },
      {
        "id": "property_access_date",
        "name": "Access date",
        "value": [
          "1641830824"
        ]
      }
    ]
  }
]