Service: zimbraMail

Command: ListDocumentRevisions
Namespace: urn:zimbraMail
Description: Returns {num} number of revisions starting from {version} of the requested document. {num} defaults to 1. {version} defaults to the current version.
Documents that have multiple revisions have the flag "/", which indicates that the document is versioned.
Properties:
Authorization token required true
Admin Authorization token required false

ListDocumentRevisionsRequest

    <ListDocumentRevisionsRequest> ## ListDocumentRevisionsRequest
        <doc id="..." [ver="(Integer)"] [count="(Integer)"] /> ## ListDocumentRevisionsSpec
    </ListDocumentRevisionsRequest>

elements and attributes you can define within a <ListDocumentRevisionsRequest> element:

XPath Required / Optional Description
/doc Required (only 1)
/doc@id Required (only 1) Type: String
/doc@ver Optional (0 or 1) Type: Integer
/doc@count Optional (0 or 1) Type: Integer

ListDocumentRevisionsResponse

    <ListDocumentRevisionsResponse> ## ListDocumentRevisionsResponse
        (<doc [loid="..."] [loe="..."] [lt="..."] [id="..."] [uuid="..."] [name="..."] [s="(Long)"] [d="(Long)"] [l="..."]
                  [luuid="..."] [ms="(Integer)"] [mdver="(Integer)"] [md="(Long)"] [rev="(Integer)"] [f="..."] [t="..."]
                  [tn="..."] [desc="..."] [ct="..."] [descEnabled="(0|1)"] [ver="(Integer)"] [leb="..."] [cr="..."] [cd="(Long)"]> ## DocumentInfo
            (<meta [section="..."]> ## MailCustomMetadata
                (<a n="...">{value}</a> ## KeyValuePair)*
              </meta>)*
            <fr>{fragment} (String)</fr>
            <acl [internalGrantExpiry="(Long)"] [guestGrantExpiry="(Long)"]> ## Acl
                (<grant perm="..." gt="(usr | grp | cos | pub | all | dom | guest | key)" zid="..." [expiry="(Long)"]
                            [d="..."] [pw="..."] [key="..."] /> ## Grant)*
             </acl>
          </doc>)*
        (<user [id="..."] [email="..."] [name="..."] /> ## IdEmailName)*
    </ListDocumentRevisionsResponse>

elements and attributes you can define within a <ListDocumentRevisionsResponse> element:

XPath Required / Optional Description
/doc Optional (0 or more)
/doc@loid Optional (0 or 1) Type: String
/doc@loe Optional (0 or 1) Type: String
/doc@lt Optional (0 or 1) Type: String
/doc@id Optional (0 or 1) Type: String
/doc@uuid Optional (0 or 1) Type: String
/doc@name Optional (0 or 1) Type: String
/doc@s Optional (0 or 1) Type: Long
/doc@d Optional (0 or 1) Type: Long
/doc@l Optional (0 or 1) Type: String
/doc@luuid Optional (0 or 1) Type: String
/doc@ms Optional (0 or 1) Type: Integer
/doc@mdver Optional (0 or 1) Type: Integer
/doc@md Optional (0 or 1) Type: Long
/doc@rev Optional (0 or 1) Type: Integer
/doc@f Optional (0 or 1) Type: String
/doc@t Optional (0 or 1) Type: String
/doc@tn Optional (0 or 1) Type: String
/doc@desc Optional (0 or 1) Type: String
/doc@ct Optional (0 or 1) Type: String
/doc@descEnabled Optional (0 or 1) Type: 0|1
/doc@ver Optional (0 or 1) Type: Integer
/doc@leb Optional (0 or 1) Type: String
/doc@cr Optional (0 or 1) Type: String
/doc@cd Optional (0 or 1) Type: Long
/doc/meta Optional (0 or more)
/doc/meta@section Optional (0 or 1) Type: String
/doc/meta/a Optional (0 or more) Type: {value}
/doc/meta/a@n Required (only 1) Type: String
/doc/fr Optional (0 or 1) Type: {fragment} (String)
/doc/acl Optional (0 or 1)
/doc/acl@internalGrantExpiry Optional (0 or 1) Type: Long
/doc/acl@guestGrantExpiry Optional (0 or 1) Type: Long
/doc/acl/grant Optional (0 or more)
/doc/acl/grant@perm Required (only 1) Type: String
/doc/acl/grant@gt Required (only 1) Type: usr | grp | cos | pub | all | dom | guest | key
/doc/acl/grant@zid Required (only 1) Type: String
/doc/acl/grant@expiry Optional (0 or 1) Type: Long
/doc/acl/grant@d Optional (0 or 1) Type: String
/doc/acl/grant@pw Optional (0 or 1) Type: String
/doc/acl/grant@key Optional (0 or 1) Type: String
/user Optional (0 or more)
/user@id Optional (0 or 1) Type: String
/user@email Optional (0 or 1) Type: String
/user@name Optional (0 or 1) Type: String