Revision History API
Last updated
Last updated
HTTP GET
to the following path:
The Revision History API is used to retrieve the revision history of a form data document.
The endpoint path requires values for the following path elements:
app
app name
Yes
form
form name
Yes
document
document id
Yes
These specify the specific form data document for which to retrieve the revision history.
Note that this API does not retrieve draft form data, only final form data.
The following URL parameters are supported:
page-number
the page number, starting at 1
No
No
positive integer
page-size
the number of items per page, defaulting to 10, maximum 100
No
No
positive integer
A client can call the API using paging, to obtain smaller chunks of the revision history. A first request can, for example, use page-number=1
and page-size=10
. If the response indicates that there are more items, the client can then call the API again with page-number=2
and page-size=10
, and so on.
Retrieve the first page of revision history for the orbeon/bookshelf form data document with id adcfea40124ef8e68fa81764df389d5a80b61762
:
The response is an XML document. Example:
The following elements and attributes are returned:
application-name
: the application name, as requested in the URL
form-name
: the form name, as requested in the URL
document-id
: the document id, as requested in the URL
total
: the total number of entries (current and historical) found in the database
min-last-modified-time
:
the earliest last modified time found in the database
max-last-modified-time
:
the latest last modified time found in the database
page-size
: the number of items per page, as requested in the URL
page-number
: the page number, starting at 1, as requested in the URL
form-version
: the form version associated with the form data
created-time
: the time the form data was initially created
created-username
: the username of the user who created the form data; empty if the data was modified by an anonymous user
document
: element describing one of the form data documents
modified-time
: the time the form data was last modified
modified-username
: the username of the user who last modified the form data; empty if the data was modified by an anonymous user
owner-username
: the username of the user who owns the form data
owner-group
: the group of the user who owns the form data; empty if there is no user group information
deleted
: whether the form data was marked as deleted
Blog post: