API ReferenceDocuments
Rename Document
PUT
Changes the document title. Folder type=organization: requires settings_document_folders=edit OR access granted by the folder edit rules. Folder type=employee: requires employee_folder_permissions=edit.
HttpBearerAuthheader
AuthorizationBearer <JWT>document_id*Document Idapplication/json- body
title*TitleSuccessful Response
application/json- response
id*Idtitle*Titleemployee_id*integer|nulluploaded_by_employee_id*Uploaded By Employee Idfolder*file*datetime_created_at*Datetime Created Atdatetime_updated_at*Datetime Updated Atcurl -X PUT 'https://api.skailer.com/api/v1/documents/0' \ -H 'Content-Type: application/json' \ -d '{ "title": "string"}'Example Response
{ "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"}Delete Document DELETE
Deletes the document. Folder `type=organization`: requires `settings_document_folders=edit` OR access granted by the folder edit rules. Folder `type=employee`: requires `employee_folder_permissions=edit`.
Download Document File GET
Returns the original document file. The permissions are the same as for viewing the document: folder `type=organization` — `settings_document_folders=edit` OR access granted by the folder view/edit rules, folder `type=employee` — `employee_folder_permissions=view`.
