Queue counts
/v1/datasets/{datasetId}/items/queue/statsHow many of the dataset's queue entries are in each state, for a progress bar or a health check, without paging through the queue. Archived entries are not counted.
processing includes entries waiting for the labelling batch. retryable
is how many of the failed entries a retry can help: those whose product
has at least one photo. A product with no photo fails every time, so a
retry does not move it. It is the number
POST /v1/datasets/{datasetId}/items/queue/retry would put back.
Path parameters
1The dataset's id, as returned when it was created.
Response
Entries per state.
Waiting for a worker.
Waiting for a price or stock update only.
Being processed
Processed into the catalogue.
Failed after their automatic retries.
The failed entries a retry can help.
Every entry counted above
Errors
21Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
Organization not found. Please verify the organizationId.The organization encoded in the API key no longer exists.
Dataset not found for this organization.No dataset with this datasetId belongs to the key's organization.
curl -X GET "https://stylor.ai/api/v1/datasets/YOUR_DATASET_ID/items/queue/stats" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"stats": {
"pending": 12,
"partial_update": 0,
"processing": 3,
"complete": 412,
"failed": 5,
"retryable": 4,
"total": 432
}
}