Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.36 KB

UpdateFileRequest.md

File metadata and controls

30 lines (22 loc) · 1.36 KB

UpdateFileRequest

The changes to make to a file: a new title, an earlier version to restore, or both.

Properties

Name Type Description Notes
title str 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 int 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

from docspace_api_sdk.models.update_file_request import UpdateFileRequest

# TODO update the JSON string below
json = "{}"
# create an instance of UpdateFileRequest from a JSON string
update_file_request_instance = UpdateFileRequest.from_json(json)
# print the JSON string representation of the object
print(UpdateFileRequest.to_json())

# convert the object into a dict
update_file_request_dict = update_file_request_instance.to_dict()
# create an instance of UpdateFileRequest from a dict
update_file_request_from_dict = UpdateFileRequest.from_dict(update_file_request_dict)

[Back to Model list] [Back to API list] [Back to README]