Skip to content

Import an Inspection Task Group

Import a JSON representation of an Inspection task group.

Direction WMS → WCS

HTTP Method POST

Path /api/task/inspection/import

Field notes:

Field NameData TypeDescriptionNotes
externalReferenceStringA reference ID for the task groupMust not be null and contain at least 1 non-whitespace character
taskCategoryStringCategory of inspection task groupAllowed values: inspection, count
expectedCompletionTimeStringExpected completion date/time in format yyyy-MM-dd HH:mmNot required; if present, expected format is yyyy-MM-dd HH:mm
timeZoneStringTime zone for the expectedCompletionTimeNot required; if present, values can be "GMT", "UTC" etc
inspectionTasksObject ArrayInspection data, this list contains all of the sub-bins that should be inspected
inspectionTasks.subBinIdStringThe location identifier for the physical bin-compartment (sub-bin) within the Autostore to be inspectedRequired, Inspection tasks must be completed against a particular SubBin
inspectionTasks.productIdStringA Unique product identifier for the product to be inspectedCan be null
inspectionTasks.batchIdStringThe batch identifier for a specific batch-managed product that is to be inspectedCan be null
inspectionTasks.expiryStringThe expiry date for a specific date-managed product that is to be inspectedCan be null
inspectionTasks.stockOwnerStringThe stock owner identifier for a specific owner-managed product that is to be inspectedCan be null
inspectionTasks.flaggedStringFlag/reason for inspectionCan be null

Example Request Body

{
"externalReference": "fab1c6cc-4f32-4a34-a73c-94c9e83eb838",
"taskCategory": "200",
"expectedCompletionTime": "2026-01-31 14:30",
"timeZone": "Europe/London",
"inspectionTasks": {
"binId": "BIN-12345",
"subBinId": "SB-12345-11",
"productId": "PROD12345",
"batchId": "BATCH12345",
"expiry": "2027-01-01",
"stockOwner": "OWNER12345",
"flagged": "QC Check Required",
}
}

202: Inspection task group import request accepted

{
"message": "Accepted"
}

400: Inspection task group import failed validation

{
"message": "Bad Request",
"errors": [
{
"message": "Task field externalReference must not be null and contain at least 1 non-whitespace character",
"path": "externalReference"
},
{
"message": "Inspection taskCategory must not be null and contain at least 1 non-whitespace character",
"path": "taskCategory"
},
{
"message": "Task field inspectionTasks must not be empty",
"path": "inspectionTasks"
}
]
}

401: Access denied, Invalid Authentication

{
"message": "Unauthorized"
}