Search document by hash
POST http://{{host}}/athento/site/automation/Athento.DocumentResultSet/
Use this endpoint for example if you want to check that a file is already in Athento.
It returns all of the documents in Athento that have the same binary content as the one sent in the request.
You can also use this endpoint to check if there are more than one documents on Athento with the same binary content.
Request Body
{"params"=>{"pageSize"=>20, "page"=>0, "query"=>"SELECT ecm:hash, dc:title FROM Document WHERE ecm:hash = '06fb3f8c4bbd3e5dd6ed84567b8c24f4'"}}
RESPONSES
status: OK
{"isNextPageAvailable":true,"hasError":false,"pageSize":20,"errorMessage":null,"resultsCount":4,"entries":[{"ecm:hash":"06fb3f8c4bbd3e5dd6ed84567b8c24f4","dc:title":"Prueba"},{"ecm:hash":"06fb3f8c4bbd3e5dd6ed84567b8c24f4","dc:title":"Ejemplo.pdf"},{"ecm:hash":"06fb3f8c4bbd3e5dd6ed84567b8c24f4","dc:title":"UsuarioNuevo"},{"ecm:hash":"06fb3f8c4bbd3e5dd6ed84567b8c24f4","dc:title":"Ejemplo.pdf"}],"isLastPageAvailable":true,"currentPageIndex":0,"numberOfPages":1,"entity-type":"recordSet","isPreviousPageAvailable":false,"currentPageSize":20,"isSortable":true,"isPaginable":true,"maxPageSize":1000000}