Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 691 Bytes

UpdateFileRequest.md

File metadata and controls

19 lines (14 loc) · 691 Bytes

DocspaceApiSdk::UpdateFileRequest

Properties

Name Type Description Notes
title String The new title of the file, without an extension - the stored extension is kept whatever the title says, so a rename cannot change the format. Left empty, the file keeps its name. [optional]
last_version Integer The version to restore on top of the history, as reported by GET api/2.0/files/file/{fileId}/history; 0 or less leaves the versions untouched. [optional]

Example

require 'docspace-api-sdk'

instance = DocspaceApiSdk::UpdateFileRequest.new(
  title: My Document,
  last_version: 1
)