Skip to Content
API ReferenceDocuments

Rename Document

PUT
/api/v1/documents/{document_id}

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.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

document_id*Document Id

Request Body

application/json
  1. body
title*Title

Response Body

Successful Response

application/json
  1. response
id*Id
title*Title
employee_id*integer|null
uploaded_by_employee_id*Uploaded By Employee Id
folder*
file*
datetime_created_at*Datetime Created At
datetime_updated_at*Datetime Updated At
Example Request
curl -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"}