File

Revert File to version

Publish a new version of a File whose content copies an earlier version. The earlier version stays in the File's history and the new version becomes current. expectedVersionId must be the File's current version; the revert is rejected if another version has been published since. Reverting to the current version is rejected.

post/api/v3/file/{file_id}:revert

Request

  • Base URL
    https://{tenant_name}.benchling.com
  • Auth
    HTTP bearer

Path parameters

file_idstring required

ID of the File.

Request body

expectedVersionIdstring required
fileVersionIdstring required

Response

OK

__typenamestring
archiveReasonstring nullable
archivedboolean
createdAtstring datetime
currentVersionIdstring nullable
displayIdstring nullable
externalFileIdstring nullable

Use scratchFile to access externalFileId.

filenamestring nullable

Use scratchFile to access filename.

idstring
mimeTypestring nullable

Use scratchFile to access mimeType.

modifiedAtstring datetime
namestring nullable
versionsstring uri

Published versions of the File, newest first.

Changes

No recorded changes to this operation across all 2 revisions of this API.