Skip to main content
PUT
/
data
/
batches
/
{id}
/
images
/
split
Split batch images
curl --request PUT \
  --url https://acusight.io/api/data/batches/{id}/images/split \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "completed_only": true,
  "force_reassignment": true,
  "mark_all_complete": true,
  "promote_to_dataset": true,
  "target": "<string>",
  "test_split": 123,
  "train_split": 123,
  "val_split": 123
}
'
{
  "data": {
    "batch_id": 123,
    "class_distribution": {},
    "class_targets": {},
    "kept_count": 123,
    "locked_count": 123,
    "moved_count": 123,
    "split_counts": {},
    "test_count": 123,
    "total": 123,
    "train_count": 123,
    "val_count": 123,
    "warnings": [
      "<string>"
    ]
  },
  "error": {
    "code": "<string>",
    "details": "<string>",
    "message": "<string>"
  },
  "meta": {
    "count": 123,
    "limit": 123,
    "offset": 123,
    "total": 123
  },
  "success": true
}

Authorizations

Authorization
string
header
required

JWT access token. Paste the token only; the Bearer prefix is added automatically.

Path Parameters

id
integer
required

Batch ID

Body

application/json

Split configuration

mode
enum<string>
required
Available options:
proportions,
all,
existing
completed_only
boolean

Optional: only split images with completed annotations (default true)

force_reassignment
boolean
mark_all_complete
boolean

Optional: mark all images as completed before processing (default false)

promote_to_dataset
boolean
target
string

"train" | "val" | "test" (when Mode = all)

test_split
number
train_split
number
val_split
number

Response

Split assignment summary

data
object
error
object
meta
object
success
boolean