19 endpoints

# Documents

Employee and company document management, uploads, folder templates.

## Documents

GET`/document-categories`List Document CategoriesGet all document categories for the company.

POST`/document-categories`Create Document CategoryCreate a new document category.

PUT`/document-categories/{uuid}`Update Document CategoryUpdate a document category.

DELETE`/document-categories/{uuid}`Delete Document CategoryDelete a document category.

GET`/employees/{uuid}/documents`List Employee DocumentsGet all documents for an employee.

POST`/employees/{uuid}/documents/upload`Upload Employee DocumentUpload a document for an employee (multipart/form-data).

DELETE`/employees/{uuid}/documents/{doc_uuid}`Delete Employee DocumentDelete a document from an employee's profile.

POST`/employees/{uuid}/photo`Upload Employee PhotoUpload a profile photo for an employee (JPEG/PNG, max 5MB, multipart/form-data).

GET`/documents`List Company DocumentsGet company-wide documents (policies, handbooks, etc.).

POST`/documents/upload`Upload Company DocumentUpload a company document (multipart/form-data).

DELETE`/documents/{doc_uuid}`Delete Company DocumentDelete a company document.

GET`/documents/download/{type}/{uuid}`Download DocumentGet a secure, temporary download URL for a document.

## Folder Templates

GET`/document-folder-templates`List Folder TemplatesGet all document folder templates for the company.

POST`/document-folder-templates`Create Folder TemplateCreate a folder structure template.

GET`/document-folder-templates/{uuid}`Get Folder TemplateGet a folder template with its folders.

PUT`/document-folder-templates/{uuid}`Update Folder TemplateUpdate a folder template.

DELETE`/document-folder-templates/{uuid}`Delete Folder TemplateDelete a folder template.

POST`/document-folder-templates/{uuid}/apply/employee/{employee_uuid}`Apply Template to EmployeeApply a folder template to a specific employee.

POST`/document-folder-templates/{uuid}/apply/company`Apply Template to Company DocumentsApply a company folder template to the shared company document space.

---

**URL:** https://cube-hr.co.uk/docs/documents
