Batch

Represents a submitted job of images. Typically you'd interact with this while it is being processed, or to update your internal systems with the status of images on the DLCS. The DLCS might clear out old batches after a specific time interval.

UNSTABLE Still under development

/customers/{0}/queue/batches/{1}

Supported operations

Method Label Expects Returns Statuses
GET Retrieve a Batch vocab:Batch 200 OK, 404 Not found

Supported properties

submitted

Date the batch was POSTed to the queue

domain range readonly writeonly
vocab:Batch xsd:dateTime True False

count

Total number of images in the batch

domain range readonly writeonly
vocab:Batch xsd:nonNegativeInteger True False

completed

Total number of completed images in the batch

domain range readonly writeonly
vocab:Batch xsd:nonNegativeInteger True False

finished

Date the batch was finished, if it has finished (may still have errors)

domain range readonly writeonly
vocab:Batch xsd:dateTime True False

errors

Total number of error images in the batch

domain range readonly writeonly
vocab:Batch xsd:nonNegativeInteger True False

superseded

Has this batch been superseded by another? An image can only be associated with one active batch at a time. If no images are associated with this batch, then it has been superseded by one or more later batches. The DLCS does notupdate this property automatically, you can force an update by POSTing to the /test resource of a batch.

domain range readonly writeonly
vocab:Batch xsd:boolean True False

estCompletion

Estimated Completion (best guess as to when this batch might be finished)

domain range readonly writeonly
vocab:Batch xsd:dateTime True False

images (🔗)

Collection of all the images in the batch

domain range readonly writeonly
vocab:Batch hydra:Collection True False
/customers/{0}/queue/batches/{1}/images
Method Label Expects Returns Statuses
GET Retrieves all images in batch regardless of state hydra:Collection 200 OK

completedImages (🔗)

Collection of images that have completed processing

domain range readonly writeonly
vocab:Batch hydra:Collection True False
/customers/{0}/queue/batches/{1}/completedImages
Method Label Expects Returns Statuses
GET Retrieves all COMPLETED images in batch hydra:Collection 200 OK

errorImages (🔗)

Collection of images that encountered errors

domain range readonly writeonly
vocab:Batch hydra:Collection True False
/customers/{0}/queue/batches/{1}/errorImages
Method Label Expects Returns Statuses
GET Retrieves all ERROR images in batch hydra:Collection 200 OK

test (🔗)

POST to this to force an update of the batch's superseded property. Returns JSON object with single success property (boolean).

UNSTABLE Be careful out there

domain range readonly writeonly
vocab:Batch hydra:Collection True False
/customers/{0}/queue/batches/{1}/test