Let the platform do the work

get_document_revision

Overview

Retrieves a specific document revision.

Available APIs

  • SOAP
  • REST

Definition

get_document_revision(session, i)

Parameters

Name Type Description
session String Session ID returned by a previous login call.
i String The ID of the document revision.

Result

Name Type Description
result new_return_document_revision| Array The call result.
result.document_revision Array The details of the document revision.
result.document_revision.id String The document ID.
result.document_revision.document_name String The document name.
result.document_revision.revision String The document revision number
result.document_revision.filename String The filename of the file.
result.document_revision.file String The binary contents of the file.

Change Log

Version Change
v2 Return type was changed from return_document_revision to new_return_document_revision.

Examples

PHP

$get_document_revision_parameters = array(
    //Session id
    "session" => $session_id,

    //The attachment details
    "i" => '723b7dcb-27b3-e53d-b348-50bd283f8e48',
);