Search Documents
Exactly one of folder_id (a single folder) or folder_type (all accessible folders of the type) must be set. Folder type=organization: requires settings_document_folders=edit OR access granted by the folder view/edit rules. Folder type=employee: requires employee_folder_permissions=view, and folder_type=employee requires settings_document_folders=edit.
HttpBearerAuthAuthorizationBearer <JWT>application/json- body
page_number?Page Number0 < value1folder_id?integer|nullfolder_type?|nullemployee_id?integer|nulltitle?string|nullSuccessful Response
application/json- response
items*array<>metadata*curl -X POST 'https://api.skailer.com/api/v1/documents/search' \ -H 'Content-Type: application/json' \ -d '{}'{ "items": [ { "id": 0, "title": "string", "employee_id": 0, "uploaded_by_employee_id": 0, "folder": { "id": 0, "title": "string", "type": "employee" }, "file": { "name": "string", "file_type": "string", "size": 0, "mime_type": "string", "uuid": "string", "url": "string" }, "datetime_created_at": "string", "datetime_updated_at": "string" } ], "metadata": { "page_number": 1, "total_pages": 0, "items": 0, "items_per_page": 0, "total_items": 0 }}Get All Employee Folders GET
Folders of type `employee` for a specific employee. Requires `settings_document_folders=edit`, `settings_roles_permissions=edit` or `employee_folder_permissions=view` on the folder.
Upload Document POST
Uploads a file and creates a document from it in a single request. If `employee_id` is set the document belongs to the employee, otherwise to the organization. The document title is taken from the file name without the extension and can be changed via `PUT /api/v1/documents/{document_id}`. Folder `type=organization`: requires `settings_document_folders=edit` OR access granted by the folder edit rules. Folder `type=employee`: requires `employee_folder_permissions=edit`.
