For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dataset Batches

Batches are groups of images and labels that you can track across your annotation dashboard.

About

Once you upload your data into Roboflow, that data you uploaded turns into a batch. Batches are a group of images that you can track throughout the dataset process in Roboflow.

You can view all batches on the Annotate page of your project.

The view in the Annotate page. Note: The review column is not be available for Public users.

Once images are uploaded, they are in the Unassigned column.

You can assign a batch for someone to annotate, sending it to the Annotating column. You can also assign a selection of images in a batch. In this case, any unassigned images are moved into a new batch in Unassigned.

Once images in a batch are annotated, they are sent to Review (for users with Review Mode available) or to the Dataset column.

If batches are in the Review column, some or all are either approved or rejected. Approved batches will go into the Dataset column. Rejected batches are sent back to the Annotating column

Merging Batches

You can combine several batches into one from the Annotate page. This is useful when single-image approvals have split a correction set into many small batches.

Click the three dots next to a batch name and click "Merge Batches" to open the merge dialog. Search for and select two or more batches, then click the merge button. The selected batch with the most images survives and receives all the images from the others. The emptied batches disappear from the board.

Merging is only available on a batch that has at least one other compatible batch. Batches from different source videos cannot be merged together, and managed review queues cannot be merged.

Deleting a Batch

You can only delete a batch in the Unassigned column. If the batch you want to delete is in the Annotating, Review or Dataset column, you will have to click Move to unassigned before clicking Delete Job.

You can delete batches by clicking on the three dots next to the batch name and clicking "Delete Batch".

HTTP API

List Batches

List the batches that your uploaded images are grouped into. Use a batch ID to create an annotation job from the batch.

List image batches

get

Lists the upload batches in a project. Requires batch:read.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

projectstringRequired

Project URL slug.

Query parameters
showEmptybooleanOptional

Include batches with no images.

Default: false
Responses
200

Successful response.

application/json
get/{workspace}/{project}/batches
GET /{workspace}/{project}/batches HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "batches": [
    {
      "id": "6VN0fFQIWU1E24bDjGsN",
      "name": "Uploaded on 11/22/22 at 1:39 pm",
      "images": 115,
      "numJobs": 2,
      "uploaded": {
        "_seconds": 1669146024,
        "_nanoseconds": 818000000
      }
    },
    {
      "id": "pX2b7RkqLw9Zs3TnVc1d",
      "name": "Uploaded via API",
      "images": 11,
      "numJobs": 0,
      "uploaded": {
        "_seconds": 1669236873,
        "_nanoseconds": 47000000
      }
    }
  ]
}

Get a Batch

Get an image batch

get

Returns one upload batch. Requires batch:read.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

projectstringRequired

Project URL slug.

batchIdstringRequired

Image batch ID.

Responses
200

Successful response.

application/json
idstringOptional

Batch ID. Use it to create an annotation job from the batch.

namestringOptional

Batch name. Uploads without a batch name go to "Uploaded via API".

imagesintegerOptional

Images in the batch.

numJobsintegerOptional

Annotation jobs created from the batch.

notesstringOptional

Batch notes set at upload. Present only when set.

mediaTypestringOptional

video for a batch of videos. Not set for image batches.

Other propertiesanyOptional
get/{workspace}/{project}/batches/{batchId}
GET /{workspace}/{project}/batches/{batchId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "6VN0fFQIWU1E24bDjGsN",
  "name": "Uploaded on 11/22/22 at 1:39 pm",
  "images": 115,
  "numJobs": 2,
  "uploaded": {
    "_seconds": 1669146024,
    "_nanoseconds": 818000000
  }
}

MCP Server

Connect your AI agent to the MCP Server and it can reorganize batches with these tools:

Tool
Description

annotation_batches_list

List upload batches in a project.

annotation_batches_get

Get details about one upload batch.

annotation_batches_create

Move selected images from one batch into a new batch.

annotation_batches_merge

Move all images from source batches into a target batch.

annotation_batches_delete

Delete a batch and move its images to unassigned.

Last updated

Was this helpful?