# Update a file or folder's attributes Endpoint: PATCH /documents/{id} Version: 1.0 Security: bearerAuth ## Path parameters: - `id` (integer, required) Document identifier Example: 1 ## Request fields (application/json-patch+json): - `op` (string, required) The JSON Patch operation to be performed Enum: "add", "remove", "replace", "move", "copy", "test" - `path` (string, required) A JSON-Pointer - `value` (object) The value to be used within the operations - `from` (string) A string containing a JSON Pointer value ## Response 200 fields (application/json): - `id` (integer) Document identifier Example: 1 - `parentDocumentId` (integer) Parent document identifier Example: 1 - `levelId` (integer) Level identifier, e.g. customer id Example: 1 - `level` (string, required) Level of document Enum: "CUSTOMER" - `type` (string) Type of document Enum: "FILE", "FOLDER" - `name` (string, required) File of folder name Example: "/helloworld.doc" - `owner` (string) Owner of document, the person who uploaded the file or created the folder Example: "Tommy Tynan" - `ownerUserId` (integer) User id for the owner of the document Example: 1 - `sizeInKb` (integer) Size of document in Kilo Byte (KB) Example: 1 - `path` (string) Parent folder name, might be missing for root Example: "/folder1/folder2/" - `uploadDateTime` (string) File or folder upload date and time - `tags` (array) Zero or more tags associated with the file or folder. Might be 'Star' or 'Private' or even 'Deleted' - `tags.name` (string, required) Tag name ## Response 400 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields