IRPCObjectOperations.GetDocumentComparisonWithTempFileUrl

View as Markdown

Vault API / core write session or assertion

Gets a URL of a page that shows the differences between a document file in the vault and an uploaded temporary file.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetDocumentComparisonWithTempFileUrl
HTTP (mf-http-grpc)POST /grpc/v1/get-document-comparison-with-temp-file-url
RequestGetDocumentComparisonWithTempFileUrlRequest
ResponseGetDocumentComparisonWithTempFileUrlResponse
Book and levelVault API, core
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Request: GetDocumentComparisonWithTempFileUrlRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
obj_file_ver_originalObjFileVerThe object and file version to compare.
obj_file_ver_original.obj_idObjIDThe object that owns the file.
obj_file_ver_original.obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
obj_file_ver_original.obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
obj_file_ver_original.file_verFileVerThe specific file version, as in File.file_ver.
obj_file_ver_original.file_ver.file_idFileIDThe file.
obj_file_ver_original.file_ver.typeFileVerTypeFILE_VER_TYPE_SPECIFIC for a file version number.Values: FILE_VER_TYPE_UNINITIALIZED (0), FILE_VER_TYPE_LATEST (1), FILE_VER_TYPE_ANY (2), FILE_VER_TYPE_SPECIFIC (3).
obj_file_ver_original.file_ver.internal_versionint32The file version number.
obj_file_ver_original.file_ver.external_repository_versionstringUsed only for files in external repositories. Leave empty.
obj_file_ver_original.file_ver.external_repository_sort_keyint64Used only for files in external repositories. Leave 0.
upload_session_idint32Upload session ID.
upload_file_namestringThe file name to display in the compare UI for the temporarily uploaded file.
languagestringThe language to use for localization of the compare UI.
allow_downloadboolTrue if the download options should be enabled in the compare UI, false otherwise.

Response: GetDocumentComparisonWithTempFileUrlResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
compare_urlstringReceives the document comparison URL.