Get a Batch Audit Detail
/capture/api/v1.1/audit/batches/{batchId}
This operation will return the audit details for the batch specified by the batchId parameter.
The expand parameter can used in this operation, which will result in child resources/collections being included inline.
The child collection of documents is supported. If used, the response will contain all the associated Document Audit Detail
objects for all documents in the batch. Additionally, the child resource of runtime is supported. When used, if the batch is
presently in Capture, it's runtime state information will be returned in the response.
Request
- application/json
-
batchId: string
The unique identifier of the batch in Capture.
-
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(withallin 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 are:
runtimedocuments
Example :
?expand=runtime
Expands the runtime object of this batch audit detail, if any.Example :
?expand=documents
Expands the collection of documents of this batch audit detail, if any. -
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.
Response
- application/json
200 Response
The batch audit detail specified by batchId.
objectBatch Audit DetailA Batch Audit Detail in Capture is a set of events that occurred for a given batch. These are events such as the batch was created, the batching is being processed, the batch was deleted, etc.
A Batch Audit Detail also encompasses associated Document Audit Detail objects, which represents events for documents the a given 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. -
events(optional):
array events
This array contains all individual events that pertain to this batch, in
eventDateascending order. -
id(optional):
string
The unique identifier of the batch.
-
lastEventDate(optional):
string(date-time)
This identifies the date/time of the last event that occurred in this batch. 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.
-
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
-
runtime(optional):
object runtime
If the batch is presently part of the Capture system, this object will contain its current runtime information. However, if the batch has been committed, or has otherwise been deleted from the Capture system, there will be no runtime information.
arrayThis array contains all individual events that pertain to this batch, in eventDate ascending order.
-
Array of:
object Audit Event
Title:
Audit EventThis represents a given action that occurred within Capture that has been tracked.
arrayHATEOS 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 LinkThis is a HATEOAS link and related metadata. If responses provide links (for example, a
selflink 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
objectIf the batch is presently part of the Capture system, this object will contain its current runtime information. However, if the batch 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 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. -
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
stateof the batch determines if this object exists. -
notes(optional):
string
User supplied general notes associated with a batch.
-
priority(optional):
integer(int32)
Minimum Value:
0Maximum Value:10Default Value:0A 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.
-
state(optional):
string
Default Value:
READYThe 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.
objectAudit EventThis 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
typeof 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.
objectThe 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 InformationThis 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
updatedBythat is a user object. This indicates it was last updated by that given user.
arrayAn 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 ObjectThis 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.
objectUser InformationThis 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.
objectAny ObjectThis 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.
objectHATEOAS LinkThis 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/jsonMedia type, as defined by RFC 2046, describing the link target. The property can be assumed to be
application/jsonif the property is not present. -
method(optional):
string
Default Value:
GETHTTP 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
GETif 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:
falseBoolean flag that specifies the
hrefproperty is a URI or URI Template. The property can be assumed to befalseif the property is not present.
objectThe user that created the batch.
-
object
User Information
Title:
User InformationThis 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
updatedBythat is a user object. This indicates it was last updated by that given user.
objectIf 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. -
procedure(optional):
object procedure
If Capture is currently processing the batch, this object will contain the procedure that is controlling the batch processing.
-
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.
objectThe last user that updated the batch. This can be the Capture system.
-
object
User Information
Title:
User InformationThis 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
updatedBythat is a user object. This indicates it was last updated by that given user.
objectIf the batch is locked within a Capture Client instance, this attribute will contain the user that locked the batch.
-
object
User Information
Title:
User InformationThis 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
updatedBythat is a user object. This indicates it was last updated by that given user.
objectIf Capture is currently processing the batch, this object will contain the procedure that is controlling the batch processing.
-
object
Capture Procedure
Title:
Capture ProcedureA Capture Procedure defines metadata and procesing steps of a flow.
objectIf Capture is currently processing the batch, this object will contain current processing step the batch is undergoing.
-
object
Procedure Step
Title:
Procedure StepA step in a procedure flow.
objectCapture ProcedureA 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
objectProcedure StepA 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.
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.
404 Response
Not Found
The request includes a resource URI that does not exist. 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.