List all Document Audit Details
/capture/api/v1.1/audit/documents
This operation will return a collection of all the audit details for documents in Capture.
As a batch flows through Capture, events occur pertaining to that batch. This occurrs for documents as well. Events for documents can include that it was committed, or perhaps that its document profile was changed. It could also be runtime requirements such as the document was skipped in a processing job because it wasn't part of the restricted to criteria. Error conditions, such as a barcode not being present, can generate a document event.
The q parameter can be used to filter the results in this collection. The orderBy parameter provides a means to sort the collection. The totalResults parameter will return the total number of results that match the query. The other parameters, limit and offset, are used for paging of the results.
This operation supports the expand parameter as well, which is used to include child resources/collections inline. The
child resource of runtime
is supported. When used, if the document is presently in Capture, it's runtime state
information will be returned in the response.
If there are no document audit details, or they don't match the filtering criteria, an empty collection will be returned.
Request
- application/json
-
expand(optional): string
The expand parameter provides the option of getting child resources/collections inline with the response. It accepts a comma-separated list of attribute names or
all
. When expand is specified asall
(withall
in' lower case), all child resources/collections of the requested batch audit detail are expanded.When the expand parameter contains a non-defined child resource, the request operation results in an error. The available child resources/collections of a document audit detail are:
runtime
Example :
?expand=runtime
Expands the runtime object of this document audit detail, if any. -
limit(optional): integer(int32)
The limit parameter accepts a non-negative integer and is used to control the size of the resulting document audit details collection.
Default Value:50
-
locale(optional): string
The locale parameter is used to specify the language translations used for messages in the audit events. The value must be in the form of standard language tags as defined by RFC 4647.
If this is not specified, the default language settings locale will be used.
-
offset(optional): integer(int32)
The offset parameter accepts a non-negative integer and is used to control the start index of the dopcument audit details collection of the query.
Default Value:0
-
orderBy(optional): string
The orderBy parameter is used to control the ordering (ascending/descending) of results in the document audit detail collection. This parameter is optional as a document audit detail collection has a default sort order of
lastEventDate
descending.This parameter accepts the attribute name, and can be separated by a colon (:) for which the user wants to sort the results (ascending/descending). If a sort order it not specified, it will be sorted in ascending order. Note : asc stands for ascending and desc for descending. Multiple sort orders can be separated by semicolon (;). For example, orderBy={attributeName1}:{asc/desc};{attributeName2}:{asc/desc}. Also, there can also be mulitple orderBy query parameters, and they are applied in query string parameter order.
Only the following attributes of a batch audit detail are supported in an orderBy:
id
title
createdDate
lastEventDate
batch.id
batch.name
The attributes of the
runtime
child resource are also supported, such asruntime.sourceName
andruntime.profile.name
. However, that requires theruntime
object to be included in the expand parameter (either through the use ofall
orruntime
values), and they have no effect for historical documents. Theruntime
attributesruntime.stateToken
andruntime.mediaType
are not supported.Examples:
?orderBy=id
?orderBy=name;lastEventDate:asc
?orderBy=name&orderBy=lastEventDate:desc
?orderBy=createdDate:asc
?orderBy=createdDate:asc;runtime.sourceName
-
q(optional): string
The q parameter accepts a query expression condition that matches the attribute values of the document audit detail, and is used for filtering results in the collection. The value of the parameter can be a simple expression in the form of {attribute name} {condition operator} {attribute value}, or it can be muliple expressions grouped and combined with logical operators.
The following conditional operators are supported:
eq
- Equalsne
- Not Equalslt
- Less Thangt
- Greater Thanle
- Less Than or Equal toge
- Greater Than or Equal to
Only the conditional operators
eq
andne
can be used with string attributes; and, string attributes must be enclosed in quote characters ("). Likewise, boolean data types can only use the conditional operatorseq
andne
. All conditional operators can be used with other attribute data types.Date/time attributes must have their value represented as a string in ISO-8601 Date Time format, governed by RFC 3339. For example,
"2021-04-12"
or"2021-04-15T04:27:15-06:00"
. Even though the values are in a string format, they will support numerical type operators, such aslt
andgt
.Conditional expressions can be joined by the logical operators of
and
oror
. And, can also be grouped using parentheses()
. For example: (({expression}) and ({expression})). This forms more complex filters.Multiple q query parameters are supported, and imply the
and
logical operator.Only the following attributes of a document audit detail are supported in a q expression:
id
title
createdDate
lastEventDate
batch.id
batch.name
The attributes of the
runtime
child resource are also supported, such asruntime.sourceName
andruntime.profile.name
. However, that requires theruntime
object to be included in the expand parameter (either through the use ofall
orruntime
values), and they have no effect for historical documents. Theruntime
attributesruntime.stateToken
andruntime.mediaType
are not supported.Examples:
?q=(batch.id eq "342") and (lastEventDate ge "2021-05-26")
?q=(runtime.profile.name eq "Plumbing Invoice" and createdDate ge "2021-05-01")
?q=(runtime.size gt 250000)&q=(createdDate ge "2021-05-01")
?q=(lastEventDate ge "2021-05-26")
-
totalResults(optional): boolean
The totalResults parameter accepts a boolean flag. If specified as
true
, then the returned result will include the total number of document audit details in the query.Default Value:false
Response
- application/json
200 Response
A list of all the document audit details.
object
Document Audit Detail Collection
This represents a collection of Document Audit Detail objects.
-
count:
integer(int32)
The total number of records in the current response.
-
hasMore:
boolean
An indicator of whether there are more pages to fetch.
-
items(optional):
array items
The array of Document Audit Detail objects.
This will in the order specified by orderBy, or the default sort order of descending by
updatedDate
if orderBy was not used. -
limit:
integer(int32)
The actual page size used by the server. This may not be the same as what client requests.
-
offset:
integer(int32)
The actual index from which the singular resources are returned.
-
totalResults(optional):
integer(int32)
The total number of rows that satisfy the client request (excluding the paging parameters).
array
The array of Document Audit Detail objects.
This will in the order specified by orderBy, or the default sort order of descending by updatedDate
if orderBy was not used.
-
Array of:
object Document Audit Detail
Title:
Document Audit Detail
A Document Audit Detail in Capture is a set of events that occurred for a given document. These are events such as the document was created, the document was converted, the document was committed, etc.
A Document Audit Detail is independent in Capture, but is associated with a given Batch Audit Detail resource as documents are contained in batches.
object
Document Audit Detail
A Document Audit Detail in Capture is a set of events that occurred for a given document. These are events such as the document was created, the document was converted, the document was committed, etc.
A Document Audit Detail is independent in Capture, but is associated with a given Batch Audit Detail resource as documents are contained in batches.
-
batch(optional):
object batch
The Capture Batch that contains (or contained) this document.
-
createdDate(optional):
string(date-time)
This identifies when the document was created. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
documentId(optional):
string
If this audit detail represents an attachment of a docuument, this is the unique identifier of the document.
This only applies to audit details on attachments of a document. It does not apply to audit details on documents. It will not be present if the audit details applies to a document.
-
events(optional):
array events
This array contains all individual events that pertain to this document, in
eventDate
ascending order. -
id(optional):
string
The unique identifier of the document in Capture.
-
lastEventDate(optional):
string(date-time)
This identifies the date/time of the last event that occurred for this document. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
links(optional):
array links
HATEOS link to related resources and actions or actions on this resource. This will include at least a canonical related link to the resource.
-
runtime(optional):
object runtime
If the document is presently part of the Capture system, this object will contain its current runtime information. However, if the document has been committed, or has otherwise been deleted from the Capture system, there will be no runtime information.
-
title(optional):
string
The title of the document. This is generally the filename used during document import.
object
The Capture Batch that contains (or contained) this document.
-
object
Capture Batch
Title:
Capture Batch
A collection of documents in Capture that represent a unit of work in a procedure.
array
This array contains all individual events that pertain to this document, in eventDate
ascending order.
-
Array of:
object Audit Event
Title:
Audit Event
This represents a given action that occurred within Capture that has been tracked.
array
HATEOS link to related resources and actions or actions on this resource. This will include at least a canonical related link to the resource.
-
Array of:
object HATEOAS Link
Title:
HATEOAS Link
This is a HATEOAS link and related metadata. If responses provide links (for example, a
self
link to the resource itself) the links provided will include one or more of the properties defined on this link structure.Internet Assigned Numbers Authority (IANA) maintains a registry of link relations for use in a HATEOAS link. These are well known relations and have specific meanings. If they are applicale in Capture, they are used. For instance, canonical is well known relation, and Capture does use it.
Capture does define its own link relations in certain cases because none of the registered relations provided the proper meaning. As defined in RFC for Web Linking (RFC 8288) the relation needs to be a URI. The following link relations are defined by Capture:
urn:oce:capture:document-content
- Represents the link used to obtain a document's contenturn:oce:capture:document-complete
- Represents the link used to complete processing a document in a Step task queueurn:oce:capture:attachment-content
- Represents the link used to obtain an attachment's content
object
If the document is presently part of the Capture system, this object will contain its current runtime information. However, if the document has been committed, or has otherwise been deleted from the Capture system, there will be no runtime information.
-
createdBy(optional):
object createdBy
The user that created the document.
-
createdDate(optional):
string(date-time)
This identifies when the document was created. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
mediaType(optional):
string
This represents the media type of the document. That is the two-part identifier for file formats and format contents transmitted on the Internet.
-
profile(optional):
object profile
If this audit detail represents a docuument, this is the document profile that has been assigned.
This only applies to audit details on documents. It does not apply to events on audit details of an attachment. It will not be present if the audit details applies to an attachment of a document.
. -
size(optional):
integer(int64)
The size, in bytes, of the document.
-
sourceName(optional):
string
The filename of the document when imported.
-
stateToken(optional):
string
A generated string value that represents a particular state of the document.
In general, it is used to allow modifications of the document to proceed. It is essentially saying ... modify this document if its current
stateToken
matches this value. If the values do not match, the modification is not permitted and the operation results in an error. -
step(optional):
object step
The current processing step, if any, this document is undergoing.
-
type(optional):
object type
If this audit detail represents an attachment to a docuument, this is the attachment type that has been assigned.
This only applies to audit details on attachments of a document. It does not apply to audit details on documents. It will not be present if the audit details applies to a document.
. -
updatedBy(optional):
object updatedBy
The last user that updated the document.
-
updatedDate(optional):
string(date-time)
This identifies when the last time the document was updated. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339.
object
Capture Batch
A collection of documents in Capture that represent a unit of work in a procedure.
-
createdBy(optional):
object createdBy
The user that created the batch.
-
createdDate(optional):
string(date-time)
This identifies when the batch was created. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
error(optional):
string
The current error message of the batch, if any.
If the batch is in the ERROR
state
, this will contain the error message detailing why the batch failed processing. This message will remain until the batch re-enters processing. -
id(optional):
string
The unique identifier of the batch.
-
links(optional):
array links
HATEOS link to related resources and actions or actions on this resource. This will include at least a canonical related link to the resource.
-
lock(optional):
object lock
If the batch is locked (by a user creating/editing the batch or if Capture is currently processing the batch), this object will contain information about the lock. The
state
of the batch determines if this object exists. -
name(optional):
string
The name given to the batch.
When Capture creates a batch, the name is some defined prefix and a sequence number. For example, inv_4781
-
notes(optional):
string
User supplied general notes associated with a batch.
-
priority(optional):
integer(int32)
Minimum Value:
0
Maximum Value:10
Default Value:0
A user specified priority of the batch.
This value is used prioritize the batch for a user's attention. Its used to filter and sort batches for viewing in the client.
-
procedure(optional):
object procedure
The Capture Procedure associated with this batch.
-
state(optional):
string
Default Value:
READY
The current state of the batch.
READY
- The standard resting state of a batch. It is available to be locked by a client.LOCKED
- The batch is locked by a client for editing, such as adding/removing documents and setting metadata field values.ERROR
- An error occurred during processing. It is available to be locked by a client for edits to correct processing errors.PROCESSING
- Capture is presently processing the batch. The batch is in one of the jobs defined in the Capture procedure.
-
status(optional):
string
The current status assigned to the batch.
The status values are defined in the procedure and can be assigned during batch creation, and during transitions between processing jobs.
-
updatedBy(optional):
object updatedBy
The last user that updated the batch. This can be the Capture system.
-
updatedDate(optional):
string(date-time)
This identifies when the last time the batch was updated. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339.
object
The user that created the batch.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
array
HATEOS link to related resources and actions or actions on this resource. This will include at least a canonical related link to the resource.
-
Array of:
object HATEOAS Link
Title:
HATEOAS Link
This is a HATEOAS link and related metadata. If responses provide links (for example, a
self
link to the resource itself) the links provided will include one or more of the properties defined on this link structure.Internet Assigned Numbers Authority (IANA) maintains a registry of link relations for use in a HATEOAS link. These are well known relations and have specific meanings. If they are applicale in Capture, they are used. For instance, canonical is well known relation, and Capture does use it.
Capture does define its own link relations in certain cases because none of the registered relations provided the proper meaning. As defined in RFC for Web Linking (RFC 8288) the relation needs to be a URI. The following link relations are defined by Capture:
urn:oce:capture:document-content
- Represents the link used to obtain a document's contenturn:oce:capture:document-complete
- Represents the link used to complete processing a document in a Step task queueurn:oce:capture:attachment-content
- Represents the link used to obtain an attachment's content
object
If the batch is locked (by a user creating/editing the batch or if Capture is currently processing the batch), this object will
contain information about the lock. The state
of the batch determines if this object exists.
-
lockedBy(optional):
object lockedBy
If the batch is locked within a Capture Client instance, this attribute will contain the user that locked the batch.
-
lockedDate(optional):
string(date-time)
This identifies when the batch was locked. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
step(optional):
object step
If Capture is currently processing the batch, this object will contain current processing step the batch is undergoing.
-
workstation(optional):
string
If the batch is locked within a Capture Client instance, this attribute will contain the computer name where the Capture Client instance locked the batch.
object
The Capture Procedure associated with this batch.
-
object
Capture Procedure
Title:
Capture Procedure
A Capture Procedure defines metadata and procesing steps of a flow.
object
The last user that updated the batch. This can be the Capture system.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
object
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a
model of the API may define the attribute updatedBy
that is a user object. This indicates it
was last updated by that given user.
-
name:
string
The user's name.
object
HATEOAS Link
This is a HATEOAS link and related metadata. If responses provide links
(for example, a self
link to the resource itself) the links provided will include one or more of the
properties defined on this link structure.
Internet Assigned Numbers Authority (IANA) maintains a registry of link relations for use in a HATEOAS link. These are well known relations and have specific meanings. If they are applicale in Capture, they are used. For instance, canonical is well known relation, and Capture does use it.
Capture does define its own link relations in certain cases because none of the registered relations provided the proper meaning. As defined in RFC for Web Linking (RFC 8288) the relation needs to be a URI. The following link relations are defined by Capture:
urn:oce:capture:document-content
- Represents the link used to obtain a document's contenturn:oce:capture:document-complete
- Represents the link used to complete processing a document in a Step task queueurn:oce:capture:attachment-content
- Represents the link used to obtain an attachment's content
- href(optional): string
-
mediaType(optional):
string
Default Value:
application/json
Media type, as defined by RFC 2046, describing the link target. The property can be assumed to be
application/json
if the property is not present. -
method(optional):
string
Default Value:
GET
HTTP method for requesting the target of the link.
Valid values are:
OPTIONS
- HTTP OPTIONSHEAD
- HTTP HEADGET
- HTTP GETPOST
- HTTP POSTPUT
- HTTP PUTPATCH
- HTTP PATCHDELETE
- HTTP DELETE
The property can be assumed to be
GET
if the property is not present. -
profile(optional):
string(uri)
Link to the metadata of the resource, such as JSON-schema, that describes the resource expected when dereferencing the target resource. If not available, this property will not be present.
-
rel(optional):
string
Name of the link relation that, in addition to the type property, can be used to retrieve link details.
-
templated(optional):
boolean
Default Value:
false
Boolean flag that specifies the
href
property is a URI or URI Template. The property can be assumed to befalse
if the property is not present.
object
If the batch is locked within a Capture Client instance, this attribute will contain the user that locked the batch.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
object
If Capture is currently processing the batch, this object will contain current processing step the batch is undergoing.
-
object
Procedure Step
Title:
Procedure Step
A step in a procedure flow.
object
Procedure Step
A step in a procedure flow.
-
id(optional):
string
The unique identifier of the step within the procedure.
-
name(optional):
string
The name given to the step when created. For instance, the name of the processing job or commit profile.
-
type(optional):
string
The type of step. Some example include: External Processor, TIFF Conversion Processor, Asset Lookup Processor, etc.
object
Capture Procedure
A Capture Procedure defines metadata and procesing steps of a flow.
-
id(optional):
string
The unique identifier of the procedure in Capture.
-
name(optional):
string
The name given to the procedure when created
object
Audit Event
This represents a given action that occurred within Capture that has been tracked.
-
action(optional):
string
A simple description of the event, generally a verb, such as
CREATED
,UPDATED
,PROCESSED
, etc. -
correlationId(optional):
string
A correlation identifier of the event. It is important to note that this value is not unique.
An event may cause other events to occur. This identifier is used express a causal relationships between events, particulally between batches and documents.
-
detail(optional):
string
Detail information about the the event.
-
eventBy(optional):
object eventBy
The user that trigged/caused the event.
This is only present if the event was triggered by a user of Capture. It is not present when events are triggered by Capture.
-
eventDate(optional):
string(date-time)
This identifies when the event occurred. The date/time in ISO-8601 Date Time format (
yyyy-MM-dd'T'HH:mm:ss.SSSZ
) UTC, governed by RFC 3339. -
locale(optional):
string
The locale that was used to produce the
message
. The value will be in the form of standard language tags as defined by RFC 4647. -
message(optional):
string
The simple message the describes the event.
-
messageKey(optional):
string
The unique key that correlates to the message pattern used to generate the detail
message
. -
messageProperties(optional):
array messageProperties
An array of individual property keys and values that are attributes of the event, and used to produce the message. The order of the array is determined by the order of the argument indexes in the message pattern.
The specific keys and values are dependent on the
type
of event. Also, the event type could allow for more complex object definition than just simple key/value pairs. Some examples are:Document Committed Events
[ { "documentId": "58be0662-a758-491a-9eed-cc6f56124acf" }, { "documentTitle": "Sales Invoice [58be0662-a758-491a-9eed-cc6f56124acf]" }, { "repositoryName": "Plumbing Invoice Type" }, { "assetType": "Plumbing Invoice Type" } ]
Email Events
[ { "emailFromName": "Joe Smith" }, { "emailFromAddress": "joe.smith@someplace.com" }, { "emailSubject": "Sales Invoice" } ]
-
type(optional):
number(int32)
The unique identifer of the kind of event.
object
The user that trigged/caused the event.
This is only present if the event was triggered by a user of Capture. It is not present when events are triggered by Capture.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
array
An array of individual property keys and values that are attributes of the event, and used to produce the message. The order of the array is determined by the order of the argument indexes in the message pattern.
The specific keys and values are dependent on the type
of event. Also, the event type could allow for more complex object
definition than just simple key/value pairs. Some examples are:
Document Committed Events
[ { "documentId": "58be0662-a758-491a-9eed-cc6f56124acf" }, { "documentTitle": "Sales Invoice [58be0662-a758-491a-9eed-cc6f56124acf]" }, { "repositoryName": "Plumbing Invoice Type" }, { "assetType": "Plumbing Invoice Type" } ]
Email Events
[ { "emailFromName": "Joe Smith" }, { "emailFromAddress": "joe.smith@someplace.com" }, { "emailSubject": "Sales Invoice" } ]
-
Array of:
object Any Object
Title:
Any Object
This represents any kind of object. The object may or may not have a defined schema.
This is used by parts of the Content Capture REST API that could vary, or are not known during design time.
object
Any Object
This represents any kind of object. The object may or may not have a defined schema.
This is used by parts of the Content Capture REST API that could vary, or are not known during design time.
object
The user that created the document.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
object
If this audit detail represents a docuument, this is the document profile that has been assigned.
This only applies to audit details on documents. It does not apply to events on audit details of an attachment. It will not be present if the audit details applies to an attachment of a document.
.-
object
Document Profile
Title:
Document Profile
A Document Profile associates a collection of custom metadata fields defined in a Capture procedure with a document. Additionally, it can have associated attachment types.
These are used in Capture to help categorize and process documents. While a document profile does relate custom metadata fields and attachment types from the procedure to a document, it does not restrict metadata to just those fields or attachments to just those types. It they are used for display/management within the Capture Client.
object
The current processing step, if any, this document is undergoing.
-
object
Procedure Step
Title:
Procedure Step
A step in a procedure flow.
object
If this audit detail represents an attachment to a docuument, this is the attachment type that has been assigned.
This only applies to audit details on attachments of a document. It does not apply to audit details on documents. It will not be present if the audit details applies to a document.
.-
object
Attachment Type
Title:
Attachment Type
An Attachment Type can be used to categorize, and provides process filtering, of attachents of documents.
object
The last user that updated the document.
-
object
User Information
Title:
User Information
This object contains information about a given user of Capture.
Models use this object to denote some relation between a user and some other object. For instance, a model of the API may define the attribute
updatedBy
that is a user object. This indicates it was last updated by that given user.
object
Document Profile
A Document Profile associates a collection of custom metadata fields defined in a Capture procedure with a document. Additionally, it can have associated attachment types.
These are used in Capture to help categorize and process documents. While a document profile does relate custom metadata fields and attachment types from the procedure to a document, it does not restrict metadata to just those fields or attachments to just those types. It they are used for display/management within the Capture Client.
-
id(optional):
string
The unique identifier of the document profile.
-
name(optional):
string
The name given to the document profile.
object
Attachment Type
An Attachment Type can be used to categorize, and provides process filtering, of attachents of documents.
-
id(optional):
string
The unique identifier of the attachment type.
-
name(optional):
string
The name given to the attachment type.
400 Response
Bad Request
The request could not be processed because it contains missing or invalid information, such as a validation error on an input field or a missing required value. The response will be an Error Detail object.
500 Response
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request. The response will be an Error Detail object.